users@glassfish.java.net

Re: Need help - stateful session bean activation failing

From: <glassfish_at_javadesktop.org>
Date: Mon, 01 Oct 2007 12:49:37 PDT

It looks like I added the jars incorrectly. I have corrected what I did, but didn't use your exact instructions because I was afraid I would cause problems with the server classpath due to possibly overriding some of the server's classes with unmatching versions.

Instead, I added the hibernate jars to the GF Common Classloader by adding the jars to the domain-dir/lib directory. As described in the Classloaders chapter of the GF Developer's Guide, the Common Classloader is a lower priority classloader than the System classloader.

Unfortunately, I'm still getting errors that appear related to this problem. Following is a stack trace: (Notice the errors seem to come spaced around 4-5 minutes apart)

Creating ProductSearchBean|#]

[#|2007-10-01T14:14:35.108-0500|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=19;_ThreadName=Conta
inerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];907f0100001f-5c687596-17;_Re
questID=a756b8b0-92f9-4f2a-8978-5f2ec60e9fb7;|EJB5128:Error during Stateful Session Bean activation for key [907f0100001f-5c
687596-17]|#]

[#|2007-10-01T14:14:35.110-0500|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=19;_ThreadName=Conta
inerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];_RequestID=a756b8b0-92f9-4f2
a-8978-5f2ec60e9fb7;|sfsb activation error. Key: 907f0100001f-5c687596-17
javax.ejb.EJBException: Couldn't create EntityManager for refName: com.unclejoes.ejb.ShoppingCartBean/em
        at com.sun.ejb.containers.StatefulSessionContainer.repopulateEEMMapsInContext(StatefulSessionContainer.java:2141)
        at com.sun.ejb.containers.StatefulSessionContainer.activateEJB(StatefulSessionContainer.java:2040)
        at com.sun.ejb.containers.util.cache.LruSessionCache.lookupEJB(LruSessionCache.java:281)
        at com.sun.ejb.containers.StatefulSessionContainer._getContext(StatefulSessionContainer.java:1211)
        at com.sun.ejb.containers.BaseContainer.getContext(BaseContainer.java:1675)
        at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:1229)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:195)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.jav
a:83)
        at $Proxy80.destroy(Unknown Source)
        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:597)
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
        at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
        at org.jboss.seam.Component.callComponentMethod(Component.java:1834)
        at org.jboss.seam.Component.callDestroyMethod(Component.java:1765)
        at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:231)
        at org.jboss.seam.contexts.Lifecycle.endSession(Lifecycle.java:297)
        at org.jboss.seam.servlet.SeamListener.sessionDestroyed(SeamListener.java:45)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:777)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:735)
        at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:646)
        at org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:899)
        at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5498)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1822)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1811)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: org.hibernate.ejb.EntityManagerImpl
        at com.sun.appserv.server.util.ASURLClassLoader.loadClass(ASURLClassLoader.java:129)
        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:247)
        at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
        at com.sun.ejb.containers.StatefulSessionContainer.repopulateEEMMapsInContext(StatefulSessionContainer.java:2133)
        ... 27 more
|#]

[#|2007-10-01T14:14:35.112-0500|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=19;_ThreadName=Contain
:
erBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];ShoppingCartBean;|EJB5018: An
exception was thrown during an ejb invocation on [ShoppingCartBean]|#]

[#|2007-10-01T14:14:35.112-0500|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=19;_ThreadName=Contain
erBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];|
javax.ejb.NoSuchObjectLocalException: The EJB does not exist. session-key: 907f0100001f-5c687596-17
        at com.sun.ejb.containers.StatefulSessionContainer._getContext(StatefulSessionContainer.java:1220)
        at com.sun.ejb.containers.BaseContainer.getContext(BaseContainer.java:1675)
        at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:1229)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:195)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.jav
a:83)
        at $Proxy80.destroy(Unknown Source)
        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:597)
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
        at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
        at org.jboss.seam.Component.callComponentMethod(Component.java:1834)
        at org.jboss.seam.Component.callDestroyMethod(Component.java:1765)
        at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:231)
        at org.jboss.seam.contexts.Lifecycle.endSession(Lifecycle.java:297)
        at org.jboss.seam.servlet.SeamListener.sessionDestroyed(SeamListener.java:45)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:777)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:735)
        at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:646)
        at org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:899)
        at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5498)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1822)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1811)
        at java.lang.Thread.run(Thread.java:619)
|#]

[#|2007-10-01T14:15:31.232-0500|INFO|sun-appserver9.1|com.unclejoes.servlet.HostNameFilter|_ThreadID=20;_ThreadName=httpSSLW
orkerThread-443-1;|Request: contextPath = , servletPath = /index.jsp, remoteUser = null|#]

[#|2007-10-01T14:19:07.459-0500|INFO|sun-appserver9.1|com.unclejoes.servlet.HostNameFilter|_ThreadID=17;_ThreadName=httpSSLW
orkerThread-80-1;|Request: contextPath = , servletPath = /index.jsp, remoteUser = null|#]

[#|2007-10-01T14:19:07.519-0500|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=17;_ThreadName=httpSSLWor
kerThread-80-1;|
Creating ProductSearchBean|#]

[#|2007-10-01T14:19:35.168-0500|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=19;_ThreadName=Conta
inerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];907f0100001f-5c687596-18;_Re
questID=a756b8b0-92f9-4f2a-8978-5f2ec60e9fb7;|EJB5128:Error during Stateful Session Bean activation for key [907f0100001f-5c
687596-18]|#]

[#|2007-10-01T14:19:35.168-0500|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=19;_ThreadName=Conta
inerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];_RequestID=a756b8b0-92f9-4f2
a-8978-5f2ec60e9fb7;|sfsb activation error. Key: 907f0100001f-5c687596-18
javax.ejb.EJBException: Couldn't create EntityManager for refName: com.unclejoes.ejb.ShoppingCartBean/em
        at com.sun.ejb.containers.StatefulSessionContainer.repopulateEEMMapsInContext(StatefulSessionContainer.java:2141)
        at com.sun.ejb.containers.StatefulSessionContainer.activateEJB(StatefulSessionContainer.java:2040)
        at com.sun.ejb.containers.util.cache.LruSessionCache.lookupEJB(LruSessionCache.java:281)
        at com.sun.ejb.containers.StatefulSessionContainer._getContext(StatefulSessionContainer.java:1211)
        at com.sun.ejb.containers.BaseContainer.getContext(BaseContainer.java:1675)
        at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:1229)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:195)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.jav
a:83)
        at $Proxy80.destroy(Unknown Source)
        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:597)
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
        at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
        at org.jboss.seam.Component.callComponentMethod(Component.java:1834)
        at org.jboss.seam.Component.callDestroyMethod(Component.java:1765)
        at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:231)
        at org.jboss.seam.contexts.Lifecycle.endSession(Lifecycle.java:297)
        at org.jboss.seam.servlet.SeamListener.sessionDestroyed(SeamListener.java:45)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:777)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:735)
        at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:646)
        at org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:899)
        at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5498)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1822)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1811)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: org.hibernate.ejb.EntityManagerImpl
        at com.sun.appserv.server.util.ASURLClassLoader.loadClass(ASURLClassLoader.java:129)
        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:247)
        at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
        at com.sun.ejb.containers.StatefulSessionContainer.repopulateEEMMapsInContext(StatefulSessionContainer.java:2133)
        ... 27 more
|#]

[#|2007-10-01T14:19:35.170-0500|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=19;_ThreadName=Contain
erBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];ShoppingCartBean;|EJB5018: An
exception was thrown during an ejb invocation on [ShoppingCartBean]|#]

[#|2007-10-01T14:19:35.171-0500|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=19;_ThreadName=Contain
erBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];|
javax.ejb.NoSuchObjectLocalException: The EJB does not exist. session-key: 907f0100001f-5c687596-18
        at com.sun.ejb.containers.StatefulSessionContainer._getContext(StatefulSessionContainer.java:1220)
        at com.sun.ejb.containers.BaseContainer.getContext(BaseContainer.java:1675)
        at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:1229)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:195)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.jav
a:83)
        at $Proxy80.destroy(Unknown Source)
        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:597)
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
        at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
        at org.jboss.seam.Component.callComponentMethod(Component.java:1834)
        at org.jboss.seam.Component.callDestroyMethod(Component.java:1765)
        at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:231)
        at org.jboss.seam.contexts.Lifecycle.endSession(Lifecycle.java:297)
        at org.jboss.seam.servlet.SeamListener.sessionDestroyed(SeamListener.java:45)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:777)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:735)
        at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:646)
        at org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:899)
        at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5498)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1822)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1811)
        at java.lang.Thread.run(Thread.java:619)
|#]

[#|2007-10-01T14:20:31.447-0500|INFO|sun-appserver9.1|com.unclejoes.servlet.HostNameFilter|_ThreadID=21;_ThreadName=httpSSLW
orkerThread-443-0;|Request: contextPath = , servletPath = /index.jsp, remoteUser = null|#]

[#|2007-10-01T14:24:08.340-0500|INFO|sun-appserver9.1|com.unclejoes.servlet.HostNameFilter|_ThreadID=16;_ThreadName=httpSSLW
orkerThread-80-0;|Request: contextPath = , servletPath = /index.jsp, remoteUser = null|#]

[#|2007-10-01T14:24:08.395-0500|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=16;_ThreadName=httpSSLWor
kerThread-80-0;|
Creating ProductSearchBean|#]

[#|2007-10-01T14:24:35.263-0500|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=19;_ThreadName=Conta
inerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];907f0100001f-5c687596-19;_Re
questID=a756b8b0-92f9-4f2a-8978-5f2ec60e9fb7;|EJB5128:Error during Stateful Session Bean activation for key [907f0100001f-5c
687596-19]|#]

[#|2007-10-01T14:24:35.263-0500|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=19;_ThreadName=Conta
inerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];_RequestID=a756b8b0-92f9-4f2
a-8978-5f2ec60e9fb7;|sfsb activation error. Key: 907f0100001f-5c687596-19
javax.ejb.EJBException: Couldn't create EntityManager for refName: com.unclejoes.ejb.ShoppingCartBean/em
        at com.sun.ejb.containers.StatefulSessionContainer.repopulateEEMMapsInContext(StatefulSessionContainer.java:2141)
        at com.sun.ejb.containers.StatefulSessionContainer.activateEJB(StatefulSessionContainer.java:2040)
        at com.sun.ejb.containers.util.cache.LruSessionCache.lookupEJB(LruSessionCache.java:281)
        at com.sun.ejb.containers.StatefulSessionContainer._getContext(StatefulSessionContainer.java:1211)
        at com.sun.ejb.containers.BaseContainer.getContext(BaseContainer.java:1675)
        at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:1229)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:195)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.jav
a:83)
        at $Proxy80.destroy(Unknown Source)
        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:597)
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
        at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
        at org.jboss.seam.Component.callComponentMethod(Component.java:1834)
        at org.jboss.seam.Component.callDestroyMethod(Component.java:1765)
        at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:231)

        at org.jboss.seam.contexts.Lifecycle.endSession(Lifecycle.java:297)
        at org.jboss.seam.servlet.SeamListener.sessionDestroyed(SeamListener.java:45)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:777)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:735)
        at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:646)
        at org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:899)
        at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5498)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1822)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1811)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: org.hibernate.ejb.EntityManagerImpl
        at com.sun.appserv.server.util.ASURLClassLoader.loadClass(ASURLClassLoader.java:129)
        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:247)
        at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
        at com.sun.ejb.containers.StatefulSessionContainer.repopulateEEMMapsInContext(StatefulSessionContainer.java:2133)
        ... 27 more
|#]

[#|2007-10-01T14:24:35.265-0500|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=19;_ThreadName=Contain
erBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];ShoppingCartBean;|EJB5018: An
exception was thrown during an ejb invocation on [ShoppingCartBean]|#]

[#|2007-10-01T14:24:35.265-0500|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=19;_ThreadName=Contain
erBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];|
javax.ejb.NoSuchObjectLocalException: The EJB does not exist. session-key: 907f0100001f-5c687596-19
        at com.sun.ejb.containers.StatefulSessionContainer._getContext(StatefulSessionContainer.java:1220)
        at com.sun.ejb.containers.BaseContainer.getContext(BaseContainer.java:1675)
        at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:1229)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:195)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.jav
a:83)
        at $Proxy80.destroy(Unknown Source)
        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:597)
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
        at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
        at org.jboss.seam.Component.callComponentMethod(Component.java:1834)
        at org.jboss.seam.Component.callDestroyMethod(Component.java:1765)
        at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:231)
        at org.jboss.seam.contexts.Lifecycle.endSession(Lifecycle.java:297)
        at org.jboss.seam.servlet.SeamListener.sessionDestroyed(SeamListener.java:45)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:777)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:735)
        at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:646)
        at org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:899)
        at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5498)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1822)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1811)
        at java.lang.Thread.run(Thread.java:619)
|#]

[#|2007-10-01T14:25:32.085-0500|INFO|sun-appserver9.1|com.unclejoes.servlet.HostNameFilter|_ThreadID=20;_ThreadName=httpSSLW
orkerThread-443-1;|Request: contextPath = , servletPath = /index.jsp, remoteUser = null|#]

[#|2007-10-01T14:29:09.012-0500|INFO|sun-appserver9.1|com.unclejoes.servlet.HostNameFilter|_ThreadID=17;_ThreadName=httpSSLW
orkerThread-80-1;|Request: contextPath = , servletPath = /index.jsp, remoteUser = null|#]

[#|2007-10-01T14:29:09.044-0500|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=17;_ThreadName=httpSSLWor
kerThread-80-1;|
Creating ProductSearchBean|#]

[#|2007-10-01T14:29:35.321-0500|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=19;_ThreadName=Conta
inerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];907f0100001f-5c687596-1a;_Re
questID=a756b8b0-92f9-4f2a-8978-5f2ec60e9fb7;|EJB5128:Error during Stateful Session Bean activation for key [907f0100001f-5c
687596-1a]|#]

[#|2007-10-01T14:29:35.322-0500|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=19;_ThreadName=Conta
inerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];_RequestID=a756b8b0-92f9-4f2
a-8978-5f2ec60e9fb7;|sfsb activation error. Key: 907f0100001f-5c687596-1a
javax.ejb.EJBException: Couldn't create EntityManager for refName: com.unclejoes.ejb.ShoppingCartBean/em
        at com.sun.ejb.containers.StatefulSessionContainer.repopulateEEMMapsInContext(StatefulSessionContainer.java:2141)
        at com.sun.ejb.containers.StatefulSessionContainer.activateEJB(StatefulSessionContainer.java:2040)
        at com.sun.ejb.containers.util.cache.LruSessionCache.lookupEJB(LruSessionCache.java:281)
        at com.sun.ejb.containers.StatefulSessionContainer._getContext(StatefulSessionContainer.java:1211)
        at com.sun.ejb.containers.BaseContainer.getContext(BaseContainer.java:1675)
        at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:1229)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:195)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.jav
a:83)
        at $Proxy80.destroy(Unknown Source)
        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:597)
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
        at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
        at org.jboss.seam.Component.callComponentMethod(Component.java:1834)
        at org.jboss.seam.Component.callDestroyMethod(Component.java:1765)
        at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:231)
        at org.jboss.seam.contexts.Lifecycle.endSession(Lifecycle.java:297)
        at org.jboss.seam.servlet.SeamListener.sessionDestroyed(SeamListener.java:45)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:777)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:735)
        at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:646)
        at org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:899)
        at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5498)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1822)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1811)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: org.hibernate.ejb.EntityManagerImpl
        at com.sun.appserv.server.util.ASURLClassLoader.loadClass(ASURLClassLoader.java:129)
        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:247)
        at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
        at com.sun.ejb.containers.StatefulSessionContainer.repopulateEEMMapsInContext(StatefulSessionContainer.java:2133)
        ... 27 more
|#]

[#|2007-10-01T14:29:35.324-0500|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=19;_ThreadName=Contain
erBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];ShoppingCartBean;|EJB5018: An
exception was thrown during an ejb invocation on [ShoppingCartBean]|#]

[#|2007-10-01T14:29:35.324-0500|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=19;_ThreadName=Contain
erBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];|
javax.ejb.NoSuchObjectLocalException: The EJB does not exist. session-key: 907f0100001f-5c687596-1a
        at com.sun.ejb.containers.StatefulSessionContainer._getContext(StatefulSessionContainer.java:1220)
        at com.sun.ejb.containers.BaseContainer.getContext(BaseContainer.java:1675)
        at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:1229)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:195)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.jav
a:83)
        at $Proxy80.destroy(Unknown Source)
        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:597)
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
        at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
        at org.jboss.seam.Component.callComponentMethod(Component.java:1834)
        at org.jboss.seam.Component.callDestroyMethod(Component.java:1765)
        at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:231)
        at org.jboss.seam.contexts.Lifecycle.endSession(Lifecycle.java:297)
        at org.jboss.seam.servlet.SeamListener.sessionDestroyed(SeamListener.java:45)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:777)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:735)
        at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:646)
        at org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:899)
        at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5498)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1822)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1811)
        at java.lang.Thread.run(Thread.java:619)
|#]

[#|2007-10-01T14:30:32.392-0500|INFO|sun-appserver9.1|com.unclejoes.servlet.HostNameFilter|_ThreadID=21;_ThreadName=httpSSLW
orkerThread-443-0;|Request: contextPath = , servletPath = /index.jsp, remoteUser = null|#]

[#|2007-10-01T14:34:10.718-0500|INFO|sun-appserver9.1|com.unclejoes.servlet.HostNameFilter|_ThreadID=16;_ThreadName=httpSSLW
orkerThread-80-0;|Request: contextPath = , servletPath = /index.jsp, remoteUser = null|#]

[#|2007-10-01T14:34:10.745-0500|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=16;_ThreadName=httpSSLWor
kerThread-80-0;|
Creating ProductSearchBean|#]

[#|2007-10-01T14:34:35.379-0500|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=19;_ThreadName=ContainerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];907f0100001f-5c687596-1b;_Re
questID=a756b8b0-92f9-4f2a-8978-5f2ec60e9fb7;|EJB5128:Error during Stateful Session Bean activation for key [907f0100001f-5c
687596-1b]|#]

[#|2007-10-01T14:34:35.381-0500|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=19;_ThreadName=Conta
inerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];_RequestID=a756b8b0-92f9-4f2
a-8978-5f2ec60e9fb7;|sfsb activation error. Key: 907f0100001f-5c687596-1b
javax.ejb.EJBException: Couldn't create EntityManager for refName: com.unclejoes.ejb.ShoppingCartBean/em
        at com.sun.ejb.containers.StatefulSessionContainer.repopulateEEMMapsInContext(StatefulSessionContainer.java:2141)
        at com.sun.ejb.containers.StatefulSessionContainer.activateEJB(StatefulSessionContainer.java:2040)
        at com.sun.ejb.containers.util.cache.LruSessionCache.lookupEJB(LruSessionCache.java:281)
        at com.sun.ejb.containers.StatefulSessionContainer._getContext(StatefulSessionContainer.java:1211)
        at com.sun.ejb.containers.BaseContainer.getContext(BaseContainer.java:1675)
        at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:1229)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:195)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.jav
a:83)
        at $Proxy80.destroy(Unknown Source)
        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:597)
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
        at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
        at org.jboss.seam.Component.callComponentMethod(Component.java:1834)
        at org.jboss.seam.Component.callDestroyMethod(Component.java:1765)
        at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:231)
        at org.jboss.seam.contexts.Lifecycle.endSession(Lifecycle.java:297)
        at org.jboss.seam.servlet.SeamListener.sessionDestroyed(SeamListener.java:45)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:777)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:735)
        at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:646)
        at org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:899)
        at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5498)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1822)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1811)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: org.hibernate.ejb.EntityManagerImpl
        at com.sun.appserv.server.util.ASURLClassLoader.loadClass(ASURLClassLoader.java:129)
        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:247)
        at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
        at com.sun.ejb.containers.StatefulSessionContainer.repopulateEEMMapsInContext(StatefulSessionContainer.java:2133)
        ... 27 more
|#]

[#|2007-10-01T14:34:35.383-0500|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=19;_ThreadName=Contain
erBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];ShoppingCartBean;|EJB5018: An
exception was thrown during an ejb invocation on [ShoppingCartBean]|#]
[Message sent by forum member 'rickhoro' (rickhoro)]

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