<!-- 
RSS generated by JIRA (7.13.8#713008-sha1:1606a5c1e7006e1ab135aac81f7a9566b2dbc3a6) at Mon Apr 27 23:40:51 EDT 2020

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Red Hat Issue Tracker</title>
    <link>https://issues.redhat.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>7.13.8</version>
        <build-number>713008</build-number>
        <build-date>13-09-2019</build-date>
    </build-info>


<item>
            <title>[AS7-181] Provide jta-data-source if not specified</title>
                <link>https://issues.redhat.com/browse/AS7-181</link>
                <project id="12311211" key="AS7">Application Server 7</project>
                    <description>&lt;p&gt;Persistence 2.0 Spec, Chapter 8.2.1.5&lt;br/&gt;
In Java EE environments, the jta-data-source and non-jta-data-source elements are used to specify the global JNDI name of the JTA and/or non-JTA data source to be used by the persistence provider.&lt;/p&gt;

&lt;p&gt;and need to provide one if it is not specified:&lt;/p&gt;

&lt;p&gt;If neither is specified, the deployer must specify a JTA data source at deployment or a JTA data source must be provided by the container, and a JTA EntityManagerFactory will be created to correspond to it.&lt;/p&gt;

&lt;p&gt;Without the jta-data-source element in the persistence.xml, the deployment fails to start:&lt;br/&gt;
08:53:57,004 WARN  &lt;span class=&quot;error&quot;&gt;&amp;#91;org.hibernate.connection.UserSuppliedConnectionProvider&amp;#93;&lt;/span&gt; (MSC service thread 1-6) No connection properties specified - the user must supply JDBC connections&lt;br/&gt;
08:53:57,011 INFO  &lt;span class=&quot;error&quot;&gt;&amp;#91;org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider&amp;#93;&lt;/span&gt; (MSC service thread 1-5) Using provided datasource&lt;br/&gt;
08:53:57,017 ERROR &lt;span class=&quot;error&quot;&gt;&amp;#91;org.jboss.msc.service.fail&amp;#93;&lt;/span&gt; (MSC service thread 1-6) MSC00001: Failed to start service jboss.persistenceunit.&quot;my_web.war#MY-EM&quot;: org.jboss.msc.service.StartException in service jboss.persistenceunit.&quot;my_web.war#MY-EM&quot;: Failed to start service&lt;br/&gt;
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1363)&lt;br/&gt;
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) &lt;span class=&quot;error&quot;&gt;&amp;#91;:1.6.0_21&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) &lt;span class=&quot;error&quot;&gt;&amp;#91;:1.6.0_21&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at java.lang.Thread.run(Thread.java:619) &lt;span class=&quot;error&quot;&gt;&amp;#91;:1.6.0_21&amp;#93;&lt;/span&gt;&lt;br/&gt;
Caused by: javax.persistence.PersistenceException: &lt;span class=&quot;error&quot;&gt;&amp;#91;PersistenceUnit: MY-EM&amp;#93;&lt;/span&gt; Unable to build EntityManagerFactory&lt;br/&gt;
        at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:911)&lt;br/&gt;
        at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:74)&lt;br/&gt;
        at org.jboss.as.jpa.service.PersistenceUnitService.createContainerEntityManagerFactory(PersistenceUnitService.java:169)&lt;br/&gt;
        at org.jboss.as.jpa.service.PersistenceUnitService.start(PersistenceUnitService.java:78)&lt;/p&gt;
</description>
            <key id="12435591">AS7-181</key>
            <summary>Provide jta-data-source if not specified</summary>
                <type id="1" iconUrl="https://issues.redhat.com/secure/viewavatar?size=xsmall&amp;avatarId=13263&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://issues.redhat.com/images/icons/priorities/major.svg">Major</priority>
                        <status id="5" iconUrl="https://issues.redhat.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="1">Done</resolution>
                                        <assignee username="smarlow">Scott Marlow</assignee>
                                    <reporter username="shelly.mcgowan">Shelly McGowan</reporter>
                        <labels>
                    </labels>
                <created>Mon, 18 Apr 2011 09:11:08 -0400</created>
                <updated>Fri, 29 Apr 2011 11:51:04 -0400</updated>
                            <resolved>Fri, 29 Apr 2011 09:21:29 -0400</resolved>
                                                    <fixVersion>7.0.0.CR1</fixVersion>
                                    <component>JPA / Hibernate</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                <comments>
                            <comment id="12596190" author="smarlow" created="Mon, 18 Apr 2011 11:06:26 -0400"  >&lt;p&gt;It looks like Hibernate has support for javax.persistence.jtaDataSource via AvailableSettings.JTA_DATASOURCE and Ejb3Configuration.configure()&lt;/p&gt;</comment>
                            <comment id="12596201" author="smarlow" created="Mon, 18 Apr 2011 11:15:24 -0400"  >&lt;p&gt;It sounds to me like, we want the JPA container to use the default (global) AS7 datasource, if neither (jta-data-source&lt;br/&gt;
 &amp;amp; non-jta-data-source) is specified in the deployment persistence.xml.&lt;/p&gt;</comment>
                            <comment id="12596208" author="jesper.pedersen" created="Mon, 18 Apr 2011 11:20:27 -0400"  >&lt;p&gt;There is no DefaultDS in AS 7. It is up to each subsystem to create their own. Of course if multiple datasources are needed across subsystems they should use the same.&lt;/p&gt;</comment>
                            <comment id="12596216" author="smarlow" created="Mon, 18 Apr 2011 11:28:18 -0400"  >&lt;p&gt;Do we know of any other subsystems besides JPA that need a default DS?  &lt;/p&gt;</comment>
                            <comment id="12596267" author="smarlow" created="Mon, 18 Apr 2011 13:49:45 -0400"  >&lt;p&gt;We might also want to configure the default persistence provider.&lt;/p&gt;</comment>
                            <comment id="12596293" author="smarlow" created="Mon, 18 Apr 2011 15:04:39 -0400"  >&lt;p&gt;Ignoring my own comment about the default persistence provider (we already default to Hibernate), I&apos;m thinking that the default jta datasource name could be built in.  Something like &quot;java:/H2DS&quot; or some better default name.&lt;/p&gt;</comment>
                            <comment id="12596313" author="smarlow" created="Mon, 18 Apr 2011 15:55:11 -0400"  >&lt;p&gt;Definitely not &quot;java:H2DS&quot;&lt;/p&gt;</comment>
                            <comment id="12596929" author="smarlow" created="Wed, 20 Apr 2011 17:52:43 -0400"  >&lt;p&gt;Adding configuration for JPA to standalone.xml (and domain/clustering variations):&lt;/p&gt;

&lt;p&gt;Default will be:&lt;/p&gt;

&lt;p&gt;        &amp;lt;subsystem xmlns=&quot;urn:jboss:domain:jpa:1.0&quot;&amp;gt;&lt;br/&gt;
            &amp;lt;jpa default-datasource=&quot;&quot;/&amp;gt;&lt;br/&gt;
        &amp;lt;/subsystem&amp;gt;&lt;/p&gt;

&lt;p&gt;User can use this to specify the default persistence jta-data-source&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;         &amp;lt;subsystem xmlns=&quot;urn:jboss:domain:jpa:1.0&quot;&amp;gt;&lt;br/&gt;
            &amp;lt;jpa default-datasource=&quot;java:/H2DS&quot;/&amp;gt;&lt;br/&gt;
        &amp;lt;/subsystem&amp;gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Dependency</name>
                                                                <inwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="12435543">JBPAPP6-389</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12313640" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of First Comment</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 18 Apr 2011 11:06:26 -0400</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_12314740" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_12310641" key="com.atlassian.jira.toolkit:attachments">
                        <customfieldname>Number of attachments</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_12310640" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname>Number of comments</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12311940" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hy6olr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_12310840" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>28265</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_12313440" key="com.redhat.engineering.step.step-sfdc-plugin:sfdc_cases_counter">
                        <customfieldname>SFDC Cases Counter</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_12313441" key="com.redhat.engineering.step.step-sfdc-plugin:sfdc_cases">
                        <customfieldname>SFDC Cases Links</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12313641" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time in Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        </customfields>
    </item>
</channel>
</rss>