> From: Adriano dos Santos Fernandes [mailto:adrian...@uol.com.br] > 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 > 'org.apache.wicket.protocol.http.abstracthttpsessionstore$sessionbindingliste...@14f02fb' > 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 > 'mm.sistema.web.websess...@6e8697' 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org