Re: Session lost when app. is redeployed

2009-03-27 Thread Adriano dos Santos Fernandes
Caldarale, Charles R escreveu: From: Caldarale, Charles R Subject: RE: Session lost when app. is redeployed I've finally been able to reproduce your observations, but only by touching the .war file itself. There is a workaround to this problem. Create a META-INF/context.xml fi

RE: Session lost when app. is redeployed

2009-03-26 Thread Caldarale, Charles R
> From: Caldarale, Charles R > Subject: RE: Session lost when app. is redeployed > > I've finally been able to reproduce your observations, but only by > touching the .war file itself. There is a workaround to this problem. Create a META-INF/context.xml file in your webapp

RE: Session lost when app. is redeployed

2009-03-26 Thread Caldarale, Charles R
> From: Adriano dos Santos Fernandes [mailto:adrian...@uol.com.br] > Subject: Re: Session lost when app. is redeployed > > Then I touch (with gnuwin32 touch utility) the war file. I've finally been able to reproduce your observations, but only by touching the .war file itsel

Re: Session lost when app. is redeployed

2009-03-26 Thread Adriano dos Santos Fernandes
Caldarale, Charles R escreveu: 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. I tried now a very basic ex

RE: Session lost when app. is redeployed

2009-03-26 Thread Caldarale, Charles R
> 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.

RE: Session lost when app. is redeployed

2009-03-26 Thread Caldarale, Charles R
> From: Adriano dos Santos Fernandes [mailto:adrian...@uol.com.br] > Subject: Re: Session lost when app. is redeployed > > are you *reloading* the application, or in some way or another, > updating (redeploying) it? Yes; as I stated, I followed the exact same procedure you docume

Re: Session lost when app. is redeployed

2009-03-26 Thread Adriano dos Santos Fernandes
Caldarale, Charles R escreveu: Try updating your logging.properties to set the logging level for your webapp to FINE, restart Tomcat, and then do your procedure again. Use something like this: org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/].level = FINE org.apache.catalina.

Re: Session lost when app. is redeployed

2009-03-26 Thread Adriano dos Santos Fernandes
Caldarale, Charles R escreveu: From: Adriano dos Santos Fernandes [mailto:adrian...@uol.com.br] Subject: Re: Session lost when app. is redeployed I mainly used Lambda Probe. I now also tried: - stop the application - touch the war - start the application - application is undeployed and deployed

RE: Session lost when app. is redeployed

2009-03-25 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:mgai...@hotmail.com] > Subject: RE: Session lost when app. is redeployed > > from what I've seen the normal way of handling the webapp reload > is to clean off the work folder *.ser files Don't confuse reload with undeploy; Tomcat creates t

RE: Session lost when app. is redeployed

2009-03-25 Thread Caldarale, Charles R
> From: Adriano dos Santos Fernandes [mailto:adrian...@uol.com.br] > Subject: Re: Session lost when app. is redeployed > > I mainly used Lambda Probe. I now also tried: > - stop the application > - touch the war > - start the application > - application is undeployed and

Re: Session lost when app. is redeployed

2009-03-25 Thread Adriano dos Santos Fernandes
Martin Gainty wrote: Adriano- from what I've seen the normal way of handling the webapp reload is to clean off the work folder *.ser files this would be considered 'normal behaviour' since your webapp configuration has changed the attributes for any previous serialised objects would be changed

RE: Session lost when app. is redeployed

2009-03-25 Thread Martin Gainty
for the content provided. > Date: Wed, 25 Mar 2009 20:11:33 +0100 > Subject: Re: Session lost when app. is redeployed > From: joseph.mil...@gmail.com > To: users@tomcat.apache.org > > Not sure this might be of use but Apache normally has a *graceful *restart > option th

Re: Session lost when app. is redeployed

2009-03-25 Thread Joseph Millet
Not sure this might be of use but Apache normally has a *graceful *restart option that's normally tailored to such needs. On Wed, Mar 25, 2009 at 1:17 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Adriano, > > On 3/24/2009 7:1

Re: Session lost when app. is redeployed

2009-03-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Adriano, On 3/24/2009 7:13 AM, Adriano dos Santos Fernandes wrote: > So my question is how to update an application, when it have full > serializable sessions, and the new application classes are compatible > with the serialized session? > > I didn't

Re: Session lost when app. is redeployed

2009-03-24 Thread Adriano dos Santos Fernandes
Caldarale, Charles R escreveu: From: Adriano dos Santos Fernandes [mailto:adrian...@uol.com.br] Subject: Re: Session lost when app. is redeployed What cause session lost is redeploy. There is no "redeploy" in the Tomcat manager. What is the exact procedure you're d

RE: Session lost when app. is redeployed

2009-03-23 Thread Caldarale, Charles R
> From: Adriano dos Santos Fernandes [mailto:adrian...@uol.com.br] > Subject: Re: Session lost when app. is redeployed > > What cause session lost is redeploy. There is no "redeploy" in the Tomcat manager. What is the exact procedure you're doing? - Chuck THI

Re: Session lost when app. is redeployed

2009-03-23 Thread Adriano dos Santos Fernandes
Caldarale, Charles R escreveu: From: Adriano dos Santos Fernandes [mailto:adrian...@uol.com.br] Subject: Session lost when app. is redeployed Don't you think that telling us the version of Tomcat you're using, the JRE/JDK level, platform, etc., just might be useful i

RE: Session lost when app. is redeployed

2009-03-23 Thread Caldarale, Charles R
> From: Adriano dos Santos Fernandes [mailto:adrian...@uol.com.br] > Subject: Session lost when app. is redeployed Don't you think that telling us the version of Tomcat you're using, the JRE/JDK level, platform, etc., just might be useful information? > The problem is

Session lost when app. is redeployed

2009-03-23 Thread Adriano dos Santos Fernandes
Hi! First, I must say that I found in the archives the exact problem I have now, but no solution was presented. My application (built using Apache Wicket), is stateful. When I reload it, or when I restart Tomcat, the session is correctly serialized and restored. Jetty is also able to restore