I get the below stacktrace (and more) when invoking an EJB.
I've checked that the DeliveryReport class exists in a jar along with all other entities. Invoking other EJBs using other entity beans is not a problem. I only get this error using a specific EJB.
I've deployed the exact same EAR on a testserver running the same glassfish build. I cannot reproduce the error there...
[#|2008-04-21T22:45:24.435+0200|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=17;_ThreadName=httpSSLWorkerThread-80-0;|
javax.ejb.EJBException
at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:3869)
at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3769)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3571)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1354)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1316)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:205)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:83)
at $Proxy177.findStatusOp(Unknown Source)
at com.bluebricks.admin.WebStatus.getStatus(WebStatus.java:53)
at com.bluebricks.admin.WebStatus.<init>(WebStatus.java:35)
at com.bluebricks.stripes.WebadminActionBean.open(WebadminActionBean.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at net.sourceforge.stripes.controller.DispatcherHelper$6.intercept(DispatcherHelper.java:445)
at net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:157)
at ca.qc.ircm.stripes.interceptor.SessionStoreInterceptor.intercept(SessionStoreInterceptor.java:54)
at net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:154)
at net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor.intercept(BeforeAfterMethodInterceptor.java:107)
at net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:154)
at net.sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContext.java:73)
at net.sourceforge.stripes.controller.DispatcherHelper.invokeEventHandler(DispatcherHelper.java:443)
at net.sourceforge.stripes.controller.DispatcherServlet.invokeEventHandler(DispatcherServlet.java:241)
at net.sourceforge.stripes.controller.DispatcherServlet.doPost(DispatcherServlet.java:154)
at net.sourceforge.stripes.controller.DispatcherServlet.doGet(DispatcherServlet.java:61)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
at net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:180)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:268)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:339)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:261)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:212)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
Caused by: javax.persistence.PersistenceException: Exception [TOPLINK-28019] (Oracle TopLink Essentials - 2.0 (Build b58-rc1 (08/04/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
Exception Description: deploy for PersistenceUnit [AdminServices] failed. Close all factories for this PersistenceUnit.
Internal Exception: Exception [TOPLINK-7198] (Oracle TopLink Essentials - 2.0 (Build b58-rc1 (08/04/2007))): oracle.toplink.essentials.exceptions.ValidationException
Exception Description: Class: [null] was not found while converting from class names to classes.
Internal Exception: java.lang.ClassNotFoundException: com.bluebricks.net.entity.DeliveryReport
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:216)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:93)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:126)
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:99)
at com.sun.enterprise.util.EntityManagerWrapper._getDelegate(EntityManagerWrapper.java:181)
at com.sun.enterprise.util.EntityManagerWrapper.createQuery(EntityManagerWrapper.java:348)
at com.bluebricks.net.sql.beans.AdminServicesBean.findStatusOp(AdminServicesBean.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1067)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2895)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3986)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:197)
... 53 more
Caused by: Exception [TOPLINK-28019] (Oracle TopLink Essentials - 2.0 (Build b58-rc1 (08/04/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
Exception Description: deploy for PersistenceUnit [AdminServices] failed. Close all factories for this PersistenceUnit.
Internal Exception: Exception [TOPLINK-7198] (Oracle TopLink Essentials - 2.0 (Build b58-rc1 (08/04/2007))): oracle.toplink.essentials.exceptions.ValidationException
Exception Description: Class: [null] was not found while converting from class names to classes.
Internal Exception: java.lang.ClassNotFoundException: com.bluebricks.net.entity.DeliveryReport
at oracle.toplink.essentials.exceptions.EntityManagerSetupException.deployFailed(EntityManagerSetupException.java:236)
... 69 more
Caused by: Exception [TOPLINK-7198] (Oracle TopLink Essentials - 2.0 (Build b58-rc1 (08/04/2007))): oracle.toplink.essentials.exceptions.ValidationException
Exception Description: Class: [null] was not found while converting from class names to classes.
Internal Exception: java.lang.ClassNotFoundException: com.bluebricks.net.entity.DeliveryReport
at oracle.toplink.essentials.exceptions.ValidationException.classNotFoundWhileConvertingClassNames(ValidationException.java:2131)
at oracle.toplink.essentials.descriptors.ClassDescriptor.convertClassNamesToClasses(ClassDescriptor.java:903)
at oracle.toplink.essentials.sessions.Project.convertClassNamesToClasses(Project.java:253)
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:195)
... 68 more
Caused by: java.lang.ClassNotFoundException: com.bluebricks.net.entity.DeliveryReport
at com.sun.enterprise.loader.EJBClassLoader.findClassData(EJBClassLoader.java:709)
at com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:627)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at oracle.toplink.essentials.internal.security.PrivilegedAccessHelper.getClassForName(PrivilegedAccessHelper.java:112)
at oracle.toplink.essentials.descriptors.ClassDescriptor.convertClassNamesToClasses(ClassDescriptor.java:889)
... 70 more
|#]
Thanks
//Marius
[Message sent by forum member 'mariusw' (mariusw)]
http://forums.java.net/jive/thread.jspa?messageID=270519