tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lenny Karpel <lkar...@opentext.com>
Subject Problems with TC5 and persistent sessions.
Date Wed, 09 Jul 2003 20:09:29 GMT
I am running TC 5.0.3 .. 

When I stop and restart the server standard manager tries to load any
sessions that have been previously persisted. 

TC seems to do this outside of the context of the webapps as the webapps do
not appear to be loaded until after this occurs. As you can see in the trace
back below TC can't load the session. I assume this is because the object to
be de-serialized class is contained in a jar in a webapp that has not yet
been loaded. 

So .. my questions are .. 

What is the 'spec' on the re-loading of sessions that are persisted and the
serializable classes contained in that session? Does the spec say where
these classes should be placed? Is this just a hole in the spec or TC
somewhere? 

Thanks in advance for any help on this issue.

Len

Jul 9, 2003 1:52:53 PM
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource execute
INFO: Reading descriptors ( dom ) 297
Jul 9, 2003 1:52:53 PM
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource execute
INFO: Reading descriptors ( dom ) 16
Jul 9, 2003 1:52:53 PM
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource execute
INFO: Reading descriptors ( dom ) 31
Jul 9, 2003 1:52:54 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Jul 9, 2003 1:52:54 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2484 ms
Jul 9, 2003 1:52:54 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 9, 2003 1:52:54 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.3
Jul 9, 2003 1:52:54 PM
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource execute
INFO: Reading descriptors ( dom ) 16
Jul 9, 2003 1:52:54 PM
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource execute
INFO: Reading descriptors ( dom ) 94
Jul 9, 2003 1:52:55 PM
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource execute
INFO: Reading descriptors ( dom ) 0
Jul 9, 2003 1:52:55 PM
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource execute
INFO: Reading descriptors ( dom ) 31
Jul 9, 2003 1:52:56 PM org.apache.catalina.session.StandardManager doLoad
SEVERE: ClassNotFoundException while loading persisted sessions:
java.lang.ClassNotFoundException: [Lcom.eloquent.ecs.EKey;
java.lang.ClassNotFoundException: [Lcom.eloquent.ecs.EKey;
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1378)
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1225)
	at
org.apache.catalina.util.CustomObjectInputStream.resolveClass(CustomObjectIn
putStream.java:119)
	at
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
	at
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
	at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1560)
	at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1271)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
	at
org.apache.catalina.session.StandardSession.readObject(StandardSession.java:
1395)
	at
org.apache.catalina.session.StandardSession.readObjectData(StandardSession.j
ava:889)
	at
org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:451)
	at
org.apache.catalina.session.StandardManager.load(StandardManager.java:377)
	at
org.apache.catalina.session.StandardManager.start(StandardManager.java:692)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4057)
	at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1127)
	at
org.apache.catalina.core.StandardHost.start(StandardHost.java:795)
	at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1127)
	at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:502)
	at
org.apache.catalina.core.StandardService.start(StandardService.java:519)
	at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2312)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:577)
	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:324)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:394)
Jul 9, 2003 1:52:56 PM org.apache.catalina.session.StandardManager start
SEVERE: Exception loading sessions from persistent storage
java.lang.ClassNotFoundException: [Lcom.eloquent.ecs.EKey;
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1378)
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1225)
	at
org.apache.catalina.util.CustomObjectInputStream.resolveClass(CustomObjectIn
putStream.java:119)
	at
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
	at
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
	at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1560)
	at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1271)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
	at
org.apache.catalina.session.StandardSession.readObject(StandardSession.java:
1395)
	at
org.apache.catalina.session.StandardSession.readObjectData(StandardSession.j
ava:889)
	at
org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:451)
	at
org.apache.catalina.session.StandardManager.load(StandardManager.java:377)
	at
org.apache.catalina.session.StandardManager.start(StandardManager.java:692)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4057)
	at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1127)
	at
org.apache.catalina.core.StandardHost.start(StandardHost.java:795)
	at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1127)
	at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:502)
	at
org.apache.catalina.core.StandardService.start(StandardService.java:519)
	at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2312)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:577)
	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:324)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:394)
[main] <EServlet> Servlet starting at: Wed Jul 09 13:52:56 MDT 2003
.
.
.
.



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message