Bug 51638

Summary: Sessions are not serialized during shutdown
Product: Tomcat 7 Reporter: Johnas H. <johnashudson>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P2    
Version: 7.0.19   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description Johnas H. 2011-08-09 13:21:08 UTC
It seems sessions are not serialized to SESSIONS.ser when we manually stop Tomcat by executing the shutdown.sh script. Thus, if we restart Tomcat by executing the startup.sh script, previous active sessions are lost.

However, if we stop a particular application via the Tomcat Manager, the SESSIONS.ser file is created and sessions are restored successfully after the application is started again via the Tomcat Manager.

Not sure if previous versions of Tomcat 7 have the same problem, but 7.0.19 is affected. Tomcat 6 works fine.

Thank you very much!
Comment 1 Mark Thomas 2011-08-09 16:06:12 UTC
This works for me with the latest 7.0.x code and the most recent change in this area was to fix a bug in 7.0.17.

This looks like a configuration problem so please use the users mailing list for assistance.
Comment 2 Johnas H. 2011-08-09 19:53:56 UTC
Hello Mark,

You're totally right, it works well on 7.0.19. I was trying this on a server with 7.0.16 while all my other servers already run 7.0.19. I didn't realise this one hadn't been updated to the latest version. Please accept my apologies for making you loose your time testing this.

Regards,

Johnas.
Comment 3 Mark Thomas 2011-08-09 20:12:26 UTC

*** This bug has been marked as a duplicate of bug 51310 ***