[b]The Problem[/b]
I'm having a problem with the re-activation of instances of a Stateful Session Bean. I'm getting EJB5128 errors in the Glassfish server.log, along with lots of other logged information (which I include below)
[b]System and Version Info[/b]
I'm using GF V2 FCS with Hibernate 3.2.5, Hibernate Annotations 3.3.0, and Hibernate EntityManager 3.3.1. Using Java 1.6 on Redhat.
[b]Description[/b]
I didn't see this problem until I deployed the application. It appears to me that instances of one of my Stateful Session Beans, ShoppingCartBean, is being deactivated and failing on reactivation. From the log, the cause appears to be:
Caused by: java.lang.ClassNotFoundException: org.hibernate.ejb.EntityManagerImpl
This makes no sense to me, however. This class is found in hibernate-entitymanager.jar, which is present in the root of the .ear file containing the application. Also, this class is needed for anything in the application to work -- and everything does work.
Does anyone know why this might be happening?
Below see a partial listing of ShoppingCartBean.java, followed by the relevant section from server.log.
[b]Partial ShoppingCartBean.java[/b]
[code]
@Stateful
@Scope(ScopeType.SESSION)
@Name("shoppingCartBean")
public class ShoppingCartBean implements com.unclejoes.ejb.ShoppingCartLocal {
@In(create = true, required = false)
protected transient FacesMessages facesMessages;
private enum ShoppingStatus {SHOP, CHECKOUT, ORDER_CONFIRMATION, AUTH_COMPLETED};
private ShoppingStatus shoppingStatus = ShoppingStatus.SHOP;
private Result ccResult = null;
/** Used for the user to select whether the payment address is the same or
* different from the shipping address. */
private enum AddressOption { sameAsShipAddress, differentFromShipAddress };
private AddressOption addressOption = AddressOption.sameAsShipAddress;
@PersistenceContext(type=PersistenceContextType.EXTENDED)
EntityManager em;
@EJB
private UtilityLocal _utilityFacade;
//(scope=ScopeType.SESSION)
@Out
Order cartOrder = new Order();
// This variable is used to store a successful order for use in print screen.
@Out(scope=ScopeType.SESSION)
Order previousCartOrder = new Order();
//_at_In(create=true)
//_at_Out(scope=ScopeType.CONVERSATION)
@Out(scope=ScopeType.SESSION)
private User user = new User();
//_at_Out(scope=ScopeType.CONVERSATION)
@Out(scope=ScopeType.SESSION)
private CreditCard creditCard = new CreditCard();
@In
private Locale locale;
/** Creates a new instance of ShoppingCartBean */
public ShoppingCartBean() {
}
...
[/code]
[b]Extract from server.log[/b]
[#|2007-09-26T20:24:24.881-0500|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=29;_Thr
eadName=ContainerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];90
7f0100001f-43590adc-49e;_RequestID=5499b02d-6e8b-48f9-a5ff-071750e77915;|EJB5128:Error during Stateful Session
Bean activation for key [907f0100001f-43590adc-49e]|#]
[#|2007-09-26T20:24:24.881-0500|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=29;_Thr
eadName=ContainerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];_R
equestID=5499b02d-6e8b-48f9-a5ff-071750e77915;|sfsb activation error. Key: 907f0100001f-43590adc-49e
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:1
95)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandle
rDelegate.java:83)
at $Proxy205.destroy(Unknown Source)
at sun.reflect.GeneratedMethodAccessor1917.invoke(Unknown Source)
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.ja
va: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)
... 26 more
|#]
[#|2007-09-26T20:24:24.883-0500|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=29;_Threa
dName=ContainerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];Shop
pingCartBean;|EJB5018: An exception was thrown during an ejb invocation on [ShoppingCartBean]|#]
[#|2007-09-26T20:24:24.883-0500|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=29;_Threa
dName=ContainerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];|
javax.ejb.NoSuchObjectLocalException: The EJB does not exist. session-key: 907f0100001f-43590adc-49e
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:1
95)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandle
rDelegate.java:83)
at $Proxy205.destroy(Unknown Source)
at sun.reflect.GeneratedMethodAccessor1917.invoke(Unknown Source)
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.ja
va:1822)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1811)
at java.lang.Thread.run(Thread.java:619)
|#]
[#|2007-09-26T20:24:24.884-0500|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=29;_ThreadNa
me=ContainerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];|
20:24:24,884 WARN Contexts:235 - Could not destroy component: shoppingCartBean
javax.ejb.NoSuchEJBException
at com.sun.ejb.containers.BaseContainer.mapBusinessInterfaceException(BaseContainer.java:1488)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1396)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1316)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:2
05)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandle
rDelegate.java:83)
at $Proxy205.destroy(Unknown Source)
at sun.reflect.GeneratedMethodAccessor1917.invoke(Unknown Source)
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.ja
va:1822)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1811)
at java.lang.Thread.run(Thread.java:619)
Caused by: javax.ejb.NoSuchObjectLocalException: The EJB does not exist. session-key: 907f0100001f-43590adc-49e
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:1
95)
... 20 more
|#]
[#|2007-09-26T20:24:24.890-0500|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=29;_Thr
eadName=ContainerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];90
7f0100001f-43590adc-49f;_RequestID=5499b02d-6e8b-48f9-a5ff-071750e77915;|EJB5128:Error during Stateful Session
Bean activation for key [907f0100001f-43590adc-49f]|#]
[#|2007-09-26T20:24:24.890-0500|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=29;_Thr
eadName=ContainerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];_R
equestID=5499b02d-6e8b-48f9-a5ff-071750e77915;|sfsb activation error. Key: 907f0100001f-43590adc-49f
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:1
95)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandle
rDelegate.java:83)
at $Proxy205.destroy(Unknown Source)
at sun.reflect.GeneratedMethodAccessor1917.invoke(Unknown Source)
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.ja
va: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)
... 26 more
|#]
[#|2007-09-26T20:24:24.892-0500|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=29;_Threa
dName=ContainerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];Shop
pingCartBean;|EJB5018: An exception was thrown during an ejb invocation on [ShoppingCartBean]|#]
[#|2007-09-26T20:24:24.892-0500|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=29;_Threa
dName=ContainerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];|
javax.ejb.NoSuchObjectLocalException: The EJB does not exist. session-key: 907f0100001f-43590adc-49f
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:1
95)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandle
rDelegate.java:83)
at $Proxy205.destroy(Unknown Source)
at sun.reflect.GeneratedMethodAccessor1917.invoke(Unknown Source)
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.ja
va:1822)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1811)
at java.lang.Thread.run(Thread.java:619)
|#]
[#|2007-09-26T20:24:24.893-0500|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=29;_ThreadNa
me=ContainerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];|20:24:
24,892 WARN Contexts:235 - Could not destroy component: shoppingCartBean
javax.ejb.NoSuchEJBException
at com.sun.ejb.containers.BaseContainer.mapBusinessInterfaceException(BaseContainer.java:1488)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1396)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1316)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:2
05)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandle
rDelegate.java:83)
at $Proxy205.destroy(Unknown Source)
at sun.reflect.GeneratedMethodAccessor1917.invoke(Unknown Source)
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.ja
va:1822)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1811)
at java.lang.Thread.run(Thread.java:619)
Caused by: javax.ejb.NoSuchObjectLocalException: The EJB does not exist. session-key: 907f0100001f-43590adc-49f
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:1
95)
... 20 more
|#]
[#|2007-09-26T20:24:24.899-0500|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=29;_Thr
eadName=ContainerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];90
7f0100001f-43590adc-4a0;_RequestID=5499b02d-6e8b-48f9-a5ff-071750e77915;|EJB5128:Error during Stateful Session
Bean activation for key [907f0100001f-43590adc-4a0]|#]
[#|2007-09-26T20:24:24.899-0500|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=29;_Thr
eadName=ContainerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];_R
equestID=5499b02d-6e8b-48f9-a5ff-071750e77915;|sfsb activation error. Key: 907f0100001f-43590adc-4a0
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:1
95)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandle
rDelegate.java:83)
at $Proxy205.destroy(Unknown Source)
at sun.reflect.GeneratedMethodAccessor1917.invoke(Unknown Source)
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.ja
va: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)
... 26 more
|#]
[#|2007-09-26T20:24:24.900-0500|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=29;_Threa
dName=ContainerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];Shop
pingCartBean;|EJB5018: An exception was thrown during an ejb invocation on [ShoppingCartBean]|#]
[#|2007-09-26T20:24:24.901-0500|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=29;_Threa
dName=ContainerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];|
javax.ejb.NoSuchObjectLocalException: The EJB does not exist. session-key: 907f0100001f-43590adc-4a0
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:1
95)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandle
rDelegate.java:83)
at $Proxy205.destroy(Unknown Source)
at sun.reflect.GeneratedMethodAccessor1917.invoke(Unknown Source)
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.ja
va:1822)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1811)
at java.lang.Thread.run(Thread.java:619)
|#]
[#|2007-09-26T20:24:24.902-0500|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=29;_ThreadNa
me=ContainerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];|20:24:
24,901 WARN Contexts:235 - Could not destroy component: shoppingCartBean
javax.ejb.NoSuchEJBException
at com.sun.ejb.containers.BaseContainer.mapBusinessInterfaceException(BaseContainer.java:1488)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1396)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1316)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:2
05)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandle
rDelegate.java:83)
at $Proxy205.destroy(Unknown Source)
at sun.reflect.GeneratedMethodAccessor1917.invoke(Unknown Source)
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.ja
va:1822)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1811)
at java.lang.Thread.run(Thread.java:619)
Caused by: javax.ejb.NoSuchObjectLocalException: The EJB does not exist. session-key: 907f0100001f-43590adc-4a0
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:1
95)
... 20 more
|#]
[#|2007-09-26T20:24:24.907-0500|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=29;_Thr
eadName=ContainerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];90
7f0100001f-43590adc-4a1;_RequestID=5499b02d-6e8b-48f9-a5ff-071750e77915;|EJB5128:Error during Stateful Session
Bean activation for key [907f0100001f-43590adc-4a1]|#]
[#|2007-09-26T20:24:24.908-0500|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=29;_Thr
eadName=ContainerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];_R
equestID=5499b02d-6e8b-48f9-a5ff-071750e77915;|sfsb activation error. Key: 907f0100001f-43590adc-4a1
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:1
95)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandle
rDelegate.java:83)
at $Proxy205.destroy(Unknown Source)
at sun.reflect.GeneratedMethodAccessor1917.invoke(Unknown Source)
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.ja
va: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)
... 26 more
|#]
[#|2007-09-26T20:24:24.909-0500|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=29;_Threa
dName=ContainerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];Shop
pingCartBean;|EJB5018: An exception was thrown during an ejb invocation on [ShoppingCartBean]|#]
[#|2007-09-26T20:24:24.909-0500|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=29;_Threa
dName=ContainerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];|
javax.ejb.NoSuchObjectLocalException: The EJB does not exist. session-key: 907f0100001f-43590adc-4a1
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:1
95)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandle
rDelegate.java:83)
at $Proxy205.destroy(Unknown Source)
at sun.reflect.GeneratedMethodAccessor1917.invoke(Unknown Source)
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.ja
va:1822)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1811)
at java.lang.Thread.run(Thread.java:619)
|#]
[#|2007-09-26T20:24:24.910-0500|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=29;_ThreadNa
me=ContainerBackgroundProcessor[StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[]];|20:24:
24,910 WARN Contexts:235 - Could not destroy component: shoppingCartBean
javax.ejb.NoSuchEJBException
at com.sun.ejb.containers.BaseContainer.mapBusinessInterfaceException(BaseContainer.java:1488)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1396)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1316)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:2
05)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandle
rDelegate.java:83)
at $Proxy205.destroy(Unknown Source)
at sun.reflect.GeneratedMethodAccessor1917.invoke(Unknown Source)
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.ja
va:1822)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1811)
at java.lang.Thread.run(Thread.java:619)
Caused by: javax.ejb.NoSuchObjectLocalException: The EJB does not exist. session-key: 907f0100001f-43590adc-4a1
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:1
95)
... 20 more
[Message sent by forum member 'rickhoro' (rickhoro)]
http://forums.java.net/jive/thread.jspa?messageID=237456