Eric Hamilton created TOMEE-3849:
------------------------------------

             Summary: Unable to configure JPA with EclipseLink in TomEE Plume
                 Key: TOMEE-3849
                 URL: https://issues.apache.org/jira/browse/TOMEE-3849
             Project: TomEE
          Issue Type: Bug
          Components: TomEE Core Server
    Affects Versions: 8.0.10, 8.0.9, 8.0.8
            Reporter: Eric Hamilton
         Attachments: TestWeb.zip

Unable to configure persistence.xml with EclipseLink JPA:

  <persistence-unit name="TestJPA" transaction-type="RESOURCE_LOCAL">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>

 

JPA fails to load with error:

  javax.persistence.PersistenceException: No persistence providers available 
for "TestJPA" after trying the following discovered implementations: 
org.apache.openjpa.persistence.PersistenceProviderImpl

 

Attached TestWeb application to reproduce issue.  This configuration was 
working in TomEE Plume 8.0.6, and first noticed failures in TomEE Plume 8.0.8.

 

Note:  Removal of the <provider> tag configuration in persistence.xml will not 
produce an error, although it appears to default to OpenJPA as recorded in the 
logs:

  null.openjpa.Runtime OpenJPA dynamically loaded a validation provider.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to