question on ClassNotFoundException: org.eclipse.persistence.sdo.SDOResolvable [message #389414] |
Tue, 09 June 2009 12:53 |
EugeneChung Messages: 3 Registered: July 2009 |
Junior Member |
|
|
Hi, I'm using EclipseLink JPA provider only (eclipselink.jar) and I need
to use
org.eclipse.persistence.jpa.PersistenceProvider.createContai nerEntityManagerFactory
for some reasons. I'm implementing sorts of server services, so I can't
use persistence.xml because of conflict with applications.
But while calling
org.eclipse.persistence.jpa.PersistenceProvider.createContai nerEntityManagerFactory,
I met this excetion from it,
javax.persistence.PersistenceException: Exception [EclipseLink-28018]
(Eclipse Persistence Services - 1.1.1.v20090430-r4097):
org.eclipse.persistence.exceptions.EntityManagerSetupExcepti on
Exception Description: Predeployment of PersistenceUnit
[ejbTimerServiceForLocalTx] failed.
Internal Exception: Exception [EclipseLink-30007] (Eclipse Persistence
Services - 1.1.1.v20090430-r4097):
org.eclipse.persistence.exceptions.PersistenceUnitLoadingExc eption
Exception Description: An exception was thrown while loading class:
org.eclipse.persistence.sdo.SDOResolvable to check whether it implements
@Entity, @Embeddable, or @MappedSuperclass.
Internal Exception: java.lang.ClassNotFoundException:
org.eclipse.persistence.sdo.SDOResolvable
at
org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl. predeploy(EntityManagerSetupImpl.java:878)
at
org.eclipse.persistence.jpa.PersistenceProvider.createContai nerEntityManagerFactory(PersistenceProvider.java:216)
..........
Caused by: Exception [EclipseLink-28018] (Eclipse Persistence Services -
1.1.1.v20090430-r4097):
org.eclipse.persistence.exceptions.EntityManagerSetupExcepti on
Exception Description: Predeployment of PersistenceUnit
[ejbTimerServiceForLocalTx] failed.
Internal Exception: Exception [EclipseLink-30007] (Eclipse Persistence
Services - 1.1.1.v20090430-r4097):
org.eclipse.persistence.exceptions.PersistenceUnitLoadingExc eption
Exception Description: An exception was thrown while loading class:
org.eclipse.persistence.sdo.SDOResolvable to check whether it implements
@Entity, @Embeddable, or @MappedSuperclass.
Internal Exception: java.lang.ClassNotFoundException:
org.eclipse.persistence.sdo.SDOResolvable
at
org.eclipse.persistence.exceptions.EntityManagerSetupExcepti on.predeployFailed(EntityManagerSetupException.java:210)
... 9 more
Caused by: Exception [EclipseLink-30007] (Eclipse Persistence Services -
1.1.1.v20090430-r4097):
org.eclipse.persistence.exceptions.PersistenceUnitLoadingExc eption
Exception Description: An exception was thrown while loading class:
org.eclipse.persistence.sdo.SDOResolvable to check whether it implements
@Entity, @Embeddable, or @MappedSuperclass.
Internal Exception: java.lang.ClassNotFoundException:
org.eclipse.persistence.sdo.SDOResolvable
at
org.eclipse.persistence.exceptions.PersistenceUnitLoadingExc eption.exceptionLoadingClassWhileLookingForAnnotations(Persi stenceUnitLoadingException.java:138)
at
org.eclipse.persistence.internal.jpa.deployment.PersistenceU nitProcessor.loadClass(PersistenceUnitProcessor.java:264)
at
org.eclipse.persistence.internal.jpa.metadata.MetadataProces sor.initPersistenceUnitClasses(MetadataProcessor.java:249)
at
org.eclipse.persistence.internal.jpa.metadata.MetadataProces sor.processEntityMappings(MetadataProcessor.java:425)
at
org.eclipse.persistence.internal.jpa.deployment.PersistenceU nitProcessor.processORMetadata(PersistenceUnitProcessor.java :299)
at
org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl. predeploy(EntityManagerSetupImpl.java:838)
... 8 more
Caused by: java.lang.ClassNotFoundException:
org.eclipse.persistence.sdo.SDOResolvable
..........
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at
org.eclipse.persistence.internal.jpa.deployment.PersistenceU nitProcessor.loadClass(PersistenceUnitProcessor.java:261)
... 12 more
I guess PersistenceProvider.createContainerEntityManagerFactory presumes
there exist SDO libraries. (maybe moxy libs, too)
But I don't need SDO... and it may be a burden to add SDO libraries only
for this...
Is there any property started with "eclipselink." to turn off sdo library
search?
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.71391 seconds