Loading...

users@tomcat.apache.org

[Prev] Thread [Next]  |  [Prev] Date [Next]

RE: Session lost when app. is redeployed Caldarale, Charles R Mon Mar 30 11:00:49 2009

> From: Adriano dos Santos Fernandes [mailto:[EMAIL PROTECTED]
> Subject: Re: Session lost when app. is redeployed
> 
> When redeployed, this directory is cleared.

I suspect your webapp is also clearing the work directory as it shuts down, 
which deletes the SESSIONS.ser file.

> During the redeploy, I don't see creation of any .ser file.

Your log shows otherwise:
> 26/03/2009 08:37:14 org.apache.catalina.session.StandardSession writeObject
> FINE: writeObject() storing session 7BA0CDCC214AA9C4DA3A534F0575262F
> 26/03/2009 08:37:14 org.apache.catalina.session.StandardSession writeObject
> FINE:   storing attribute 'Wicket:SessionUnbindingListener-WicketFilter' 
> with value 
> '[EMAIL PROTECTED]'
> 26/03/2009 08:37:14 org.apache.catalina.session.StandardSession writeObject
> FINE:   storing attribute '__lambda_probe_la_ip' with value '127.0.0.1'
> 26/03/2009 08:37:14 org.apache.catalina.session.StandardSession writeObject
> FINE:   storing attribute 'wicket:WicketFilter:m:null' with value 
> '[PageMap name=null]'
> 26/03/2009 08:37:14 org.apache.catalina.session.StandardSession writeObject
> FINE:   storing attribute 'wicket:WicketFilter:session' with value 
> '[EMAIL PROTECTED]'

That is the trace of the SESSIONS.ser file being written, which is created 
*before* any ServletContextListener is called via contextDestroyed().  If any 
such listener removes everything in the work directory, the sessions will be 
lost.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]