Hi,
I earler successfully tried out Toplink deployed in Tomcat from simple web application.
But now, we are required to invoke it from multiple threads. This time around we are getting the below exception:
Toplink.essentials.exceptions.EntityManagerSetupException
Exception Description: Attempted to deploy PersistenceUnit [PersistenceProv1] for which predeploy method eit
her had not called or had failed
Toplink.essentials.exceptions.EntityManagerSetupException
Exception Description: Attempted to deploy PersistenceUnit [PersistenceProv1] for which predeploy method eit
her had not called or had failed
[TopLink Config]: 2007.08.16 02:42:07.076--ServerSession(7654146)--The alias name for the entity class [class com.abc.apps.entity.MyTable1] is being defaulted to: MyTable1.
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:195)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.
java:84)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFacto
ryImpl.java:127)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFacto
ryImpl.java:121)
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.ja
va:76)
at com.abc.apps.dao.businessInterface.DataLayerUtils.getEntityManager(DataLayerUtils.java:27)
at com.abc.apps.dao.businessInterface.fetchByPrimaryKey(DataLayerInterfaceImpl.j
ava:93)
at com.abc.apps.business.task.EntityRemoveHandler.process(EntityRemoveHandler.java:100)
at com.iii.apps.tahoe.business.task.Threading.run(ThreadingWay.java:42)
at java.lang.Thread.run(Thread.java:619)
Caused by: Exception [TOPLINK-28013] (Oracle TopLink Essentials - 2006.7 (Build 060720)): oracle.toplink.essentials.exceptions.
EntityManagerSetupException
Exception Description: Attempted to deploy PersistenceUnit [PersistenceProv1] for which predeploy method eit
her had not called or had failed
at oracle.toplink.essentials.exceptions.EntityManagerSetupException.cannotDeployWithoutPredeploy(EntityManagerSetupExce
ption.java:167)
... 10 more
Can someone please suggest what needs to be done for this.
Any help is appreciated.