You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Eric Hamilton (Jira)" <ji...@apache.org> on 2022/03/16 14:02:00 UTC
[jira] [Updated] (TOMEE-3849) EclipseLink JPA provider not discoverable in TomEE Plume libraries
[ https://issues.apache.org/jira/browse/TOMEE-3849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Hamilton updated TOMEE-3849:
---------------------------------
Summary: EclipseLink JPA provider not discoverable in TomEE Plume libraries (was: Unable to configure JPA with EclipseLink in TomEE Plume)
> EclipseLink JPA provider not discoverable in TomEE Plume libraries
> ------------------------------------------------------------------
>
> 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.7, 8.0.8, 8.0.9, 8.0.10
> Reporter: Eric Hamilton
> Priority: Major
> Labels: JPA, eclipselink, openjpa
> Attachments: TestWeb.zip
>
>
> Unable to configure persistence.xml with EclipseLink JPA:
> {code:java}
> <persistence-unit name="TestJPA" transaction-type="RESOURCE_LOCAL">
> <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
> {code}
>
> JPA fails to load with error:
> {code:java}
> javax.persistence.PersistenceException: No persistence providers available for "TestJPA" after trying the following discovered implementations: org.apache.openjpa.persistence.PersistenceProviderImpl{code}
>
> 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:
> {code:java}
> null.openjpa.Runtime OpenJPA dynamically loaded a validation provider.{code}
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)