[jboss-jira] [JBoss JIRA] Updated: (EJBTHREE-1193) Persistence Unit Parsing Deploy ignores the Provider attribute in persistence.xml

Ming Fai Ma (JIRA) jira-events at lists.jboss.org
Tue Feb 19 02:27:26 EST 2008


     [ http://jira.jboss.com/jira/browse/EJBTHREE-1193?page=all ]

Ming Fai Ma updated EJBTHREE-1193:
----------------------------------

    Description: 
The EJB3 Persistence Unit parsing deployer read and try to start and install a persistence unit with JBoss PersistenceUnitDeployment even though a "provider" attribute is specified to use another JPA implementation. 

14:53:17,368 INFO  [PersistenceUnitParsingDeployer] Found persistence units [org.jboss.ejb3.metadata.jpa.spec.PersistenceUnitMetaData at 4de8d8{name=MyApp}]
14:53:18,431 INFO  [PersistenceUnitParsingDeployer] Found persistence units [org.jboss.ejb3.metadata.jpa.spec.PersistenceUnitMetaData at 778590{name=MyAppWeb}, org.jboss.ejb3.metadata.jpa.spec.PersistenceUnitMetaData at e1ccdf{name=MyApp}]
14:53:39,540 INFO  [PersistenceUnitDeployment] Starting persistence unit persistence.units:ear=CyberGameCityApp.ear,unitName=CyberGameCityAppWeb
...
org.jboss.ejb3.entity.PersistenceUnitDeployment.start()

Persistence.xml
----------------------

<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    version="1.0">

    <persistence-unit name="MyApp" transaction-type="RESOURCE_LOCAL">
        <provider>
            org.apache.openjpa.persistence.PersistenceProviderImpl
        </provider>
        <jta-data-source>java:/jdbc/MyDataSource</jta-data-source>
        <jar-file>MyJar.jar</jar-file>
    </persistence-unit>

</persistence>


  was:
The EJB3 Persistence Unit parsing deployer read and try to start and install a persistence unit with JBoss PersistenceUnitDeployment even thought a provider attribute is specified for another JPA implementation. 

14:53:17,368 INFO  [PersistenceUnitParsingDeployer] Found persistence units [org.jboss.ejb3.metadata.jpa.spec.PersistenceUnitMetaData at 4de8d8{name=MyApp}]
14:53:18,431 INFO  [PersistenceUnitParsingDeployer] Found persistence units [org.jboss.ejb3.metadata.jpa.spec.PersistenceUnitMetaData at 778590{name=MyAppWeb}, org.jboss.ejb3.metadata.jpa.spec.PersistenceUnitMetaData at e1ccdf{name=MyApp}]
14:53:39,540 INFO  [PersistenceUnitDeployment] Starting persistence unit persistence.units:ear=CyberGameCityApp.ear,unitName=CyberGameCityAppWeb
...
org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:239)

Persistence.xml
----------------------

<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    version="1.0">

    <persistence-unit name="MyApp" transaction-type="RESOURCE_LOCAL">
        <provider>
            org.apache.openjpa.persistence.PersistenceProviderImpl
        </provider>
        <jta-data-source>java:/jdbc/MyDataSource</jta-data-source>
        <jar-file>MyJar.jar</jar-file>
    </persistence-unit>

</persistence>



just fix typo and improve wording

> Persistence Unit Parsing Deploy ignores the Provider attribute in persistence.xml
> ---------------------------------------------------------------------------------
>
>                 Key: EJBTHREE-1193
>                 URL: http://jira.jboss.com/jira/browse/EJBTHREE-1193
>             Project: EJB 3.0
>          Issue Type: Bug
>    Affects Versions: AS 5.0.0.Beta4
>            Reporter: Ming Fai Ma
>
> The EJB3 Persistence Unit parsing deployer read and try to start and install a persistence unit with JBoss PersistenceUnitDeployment even though a "provider" attribute is specified to use another JPA implementation. 
> 14:53:17,368 INFO  [PersistenceUnitParsingDeployer] Found persistence units [org.jboss.ejb3.metadata.jpa.spec.PersistenceUnitMetaData at 4de8d8{name=MyApp}]
> 14:53:18,431 INFO  [PersistenceUnitParsingDeployer] Found persistence units [org.jboss.ejb3.metadata.jpa.spec.PersistenceUnitMetaData at 778590{name=MyAppWeb}, org.jboss.ejb3.metadata.jpa.spec.PersistenceUnitMetaData at e1ccdf{name=MyApp}]
> 14:53:39,540 INFO  [PersistenceUnitDeployment] Starting persistence unit persistence.units:ear=CyberGameCityApp.ear,unitName=CyberGameCityAppWeb
> ...
> org.jboss.ejb3.entity.PersistenceUnitDeployment.start()
> Persistence.xml
> ----------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <persistence xmlns="http://java.sun.com/xml/ns/persistence"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     version="1.0">
>     <persistence-unit name="MyApp" transaction-type="RESOURCE_LOCAL">
>         <provider>
>             org.apache.openjpa.persistence.PersistenceProviderImpl
>         </provider>
>         <jta-data-source>java:/jdbc/MyDataSource</jta-data-source>
>         <jar-file>MyJar.jar</jar-file>
>     </persistence-unit>
> </persistence>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list