[jboss-jira] [JBoss JIRA] Created: (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:25:27 EST 2008


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 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>


-- 
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