EclipseLink-28022 When Running Application With Resource-Local Entity Manager (Doc ID 1066980.1)

Last updated on SEPTEMBER 30, 2010

Applies to:

Oracle TopLink - Version: 11.1.1.0.1 and later   [Release: Oracle11g and later ]
Information in this document applies to any platform.

Symptoms

The following error occurs when running an application with EclipseLink as JPA provider and a resource-local entity manager (with  persistence unit configured with transaction-type="RESOURCE_LOCAL" in a standalone application or on a container not compliant to Java EE >= 5):

Internal Exception: javax.persistence.PersistenceException: Exception [EclipseLink-28022] (Eclipse Persistence Services - 1.2.0.v20091016-r5565): org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Value [true] for the property [eclipselink.weaving] is incorrect when global instrumentation is null, value should either be null or false.
at org.eclipse.persistence.exceptions.PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources(PersistenceUnitLoadingException.java:123)
at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:133)
at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(PersistenceProvider.java:67)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:110)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
at project1.TestCase.performTest(TestCase.java:42)
at project1.TestCase.main(TestCase.java:100)


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms