users@glassfish.java.net

Predeploy of toplink persistence unit failing..

From: <glassfish_at_javadesktop.org>
Date: Tue, 01 Jan 2008 07:50:06 PST

Has anyone seen this exception. I am running jboss 4.0.4-GA and am using jpa with toplink essentials to read from the database ..

Caused by: javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Or
acle TopLink Essentials - 2.0 (Build b41-beta2 (03/30/2007))): oracle.toplink.es
sentials.exceptions.EntityManagerSetupException
Exception Description: predeploy for PersistenceUnit [toplinkLocal] failed.
Internal Exception: Exception [TOPLINK-30007] (Oracle TopLink Essentials - 2.0 (
Build b41-beta2 (03/30/2007))): oracle.toplink.essentials.exceptions.Persistence
UnitLoadingException
Exception Description: An exception was thrown while loading class: <<Class name>> to check whether it implements @Entity, @Embe
ddable, or @MappedSuperclass.
Internal Exception: java.lang.ClassNotFoundException: <>
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.pr
edeploy(EntityManagerSetupImpl.java:615)
at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.call
Predeploy(JavaSECMPInitializer.java:146)
at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.init
PersistenceUnits(JavaSECMPInitializer.java:226)
at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.init
ialize(JavaSECMPInitializer.java:242)
at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.init
ializeFromMain(JavaSECMPInitializer.java:278)
at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.getJ
avaSECMPInitializer(JavaSECMPInitializer.java:81)
at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.creat
eEntityManagerFactory(EntityManagerFactoryProvider.java:119)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.
java:83)
at org.springframework.orm.jpa.LocalEntityManagerFactoryBean.createNativ
eEntityManagerFactory(LocalEntityManagerFactoryBean.java:91)
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPro
pertiesSet(AbstractEntityManagerFactoryBean.java:251)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1390)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1359)
... 83 more
Caused by: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.0 (Build b41
-beta2 (03/30/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupEx
ception
Exception Description: predeploy for PersistenceUnit [toplinkLocal] failed.
Internal Exception: Exception [TOPLINK-30007] (Oracle TopLink Essentials - 2.0 (
Build b41-beta2 (03/30/2007))): oracle.toplink.essentials.exceptions.Persistence
UnitLoadingException
Exception Description: An exception was thrown while loading class: c<> to check whether it implements @Entity, @Embe
ddable, or @MappedSuperclass.
Internal Exception: java.lang.ClassNotFoundException: <>
at oracle.toplink.essentials.exceptions.EntityManagerSetupException.pred
eployFailed(EntityManagerSetupException.java:212)
... 95 more
Caused by: Exception [TOPLINK-30007] (Oracle TopLink Essentials - 2.0 (Build b41
-beta2 (03/30/2007))): oracle.toplink.essentials.exceptions.PersistenceUnitLoadi
ngException
Exception Description: An exception was thrown while loading class: <> to check whether it implements @Entity, @Embe
ddable, or @MappedSuperclass.
Internal Exception: java.lang.ClassNotFoundException: <>
at oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException.
exceptionLoadingClassWhileLookingForAnnotations(PersistenceUnitLoadingException.
java:145)
at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcess
or.isEntity(PersistenceUnitProcessor.java:304)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcesso
r.buildEntityClassSetFromAnnotations(MetadataProcessor.java:476)
at oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataProcesso
r.buildEntityList(MetadataProcessor.java:447)
at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcess
or.processORMetadata(PersistenceUnitProcessor.java:346)
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.pr
edeploy(EntityManagerSetupImpl.java:584)
... 94 more
Caused by: java.lang.ClassNotFoundException: <>
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer$Temp
EntityLoader.loadClass(JavaSECMPInitializer.java:356)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcess
or.isEntity(PersistenceUnitProcessor.java:301)
... 98 more
17:00:43,951 INFO [STDOUT] [TopLink Finer]: 2007.12.31 05:00:43.951--UnitOfWork
(30357264)--Thread(Thread[RMI TCP Connection(2)-10.151.220.141,5,RMI Runtime])--
TX beforeCompletion callback, status=STATUS_ACTIVE
17:00:43,951 INFO [STDOUT] [TopLink Finer]: 2007.12.31 05:00:43.951--UnitOfWork
(30357264)--Thread(Thread[RMI TCP Connection(2)-10.151.220.141,5,RMI Runtime])--
begin unit of work commit
17:00:43,961 WARN [TxConnectionManager] Prepare called on a local tx. Use of lo
cal transactions on a jta transaction with more than one branch may result in in
consistent data in some cases of failure.
17:00:43,971 INFO [STDOUT] [TopLink Finer]: 2007.12.31 05:00:43.971--UnitOfWork
(30357264)--Thread(Thread[RMI TCP Connection(2)-10.151.220.141,5,RMI Runtime])--
TX afterCompletion callback, status=COMMITTED
17:00:43,971 INFO [STDOUT] [TopLink Finer]: 2007.12.31 05:00:43.971--UnitOfWork
(30357264)--Thread(Thread[RMI TCP Connection(2)-10.151.220.141,5,RMI Runtime])--
end unit of work commit
17:00:43,971 INFO [STDOUT] [TopLink Finer]: 2007.12.31 05:00:43.971--UnitOfWork
(30357264)--Thread(Thread[RMI TCP Connection(2)-10.151.220.141,5,RMI Runtime])--
release unit of work
[Message sent by forum member 'vaidya1973' (vaidya1973)]

http://forums.java.net/jive/thread.jspa?messageID=251826