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 file in your

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 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 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-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 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

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

Re: Redeploy leaks

2008-12-21 Thread Adriano dos Santos Fernandes
Kees Jan Koster wrote: Dear Adriano, As I had having OutOfMemory exceptions (PermGen) when redeploying an application, I started to verify things using Eclipse Memory Analyzer. I've discovered some real leaks, for example caused by the Java Disposer thread being instantiated using the Webapp

Redeploy leaks

2008-12-19 Thread Adriano dos Santos Fernandes
Hi! As I had having OutOfMemory exceptions (PermGen) when redeploying an application, I started to verify things using Eclipse Memory Analyzer. I've discovered some real leaks, for example caused by the Java Disposer thread being instantiated using the Webapp classloader. After fix this, whe