-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Manlio,
On 10/14/2009 1:59 PM, Manlio Malaidini wrote: > On Wed, Oct 14, 2009 at 12:53 PM, Christopher Schultz > <[email protected]> wrote: >> Is this happening in production,or only in development? > > Development. > >> Could [serialVersionId] be your problem? > > I don't think so, because I don't redeploy anything before receiving > this exception: > > SEVERE: Session: 6D026DD0479F48B331D28EE8325095BB; > java.lang.ClassNotFoundException: com.whatever.spikes.session.CustomClass [snip] > at org.apache.catalina.session.FileStore.load(FileStore.java:296) > at > org.apache.catalina.session.StoreBase.processExpires(StoreBase.java:194) > at > org.apache.catalina.session.PersistentManagerBase.processExpires(PersistentManagerBase.java:553) > at > org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:664) > at > org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1285) > at > org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570) [snip] >> I have persistent sessions working just fine in Tomcat 5.5.26 with >> custom objects defined only in WEB-INF/classes. > > Are you saying that you're using FileStore or PersistentStore with a > configuration like the following ones and it just works? Oh, it looks like you are using explicit session persistence for /in-use/ sessions. I apologize for confusing the issue: I am using Tomcat's simple session-persistence-during-restart capabilities, which may or may not use the same code. > <Context path="/Spikes" reloadable="true" > docBase="/Users/mman/Workspaces/Spikes" > workDir="/Users/mman/Workspaces/Spikes/work" > > <Manager > className="org.apache.catalina.session.PersistentManager" > maxIdleBackup="0" > > <Store > className="org.apache.catalina.session.FileStore" > directory="/Users/mman/tmp/tomcat-sessions"/> > </Manager> > </Context> This configuration looks fine to me, though I don't have any experience with active-session persistence. Does this just happen randomly, without any code updates or anything like that? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrWFNYACgkQ9CaO5/Lv0PBRggCfZ5VFjTtq20YJ/sZT6Ra1QSdV e2QAniUa/qHFuNA+kLju6WvQso+AUrTe =gpKj -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
