Bug 51638 - Sessions are not serialized during shutdown
Summary: Sessions are not serialized during shutdown
Status: RESOLVED DUPLICATE of bug 51310
Alias: None
Product: Tomcat 7
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 7.0.19
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2011-08-09 13:21 UTC by Johnas H.
Modified: 2011-08-09 20:12 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
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.


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

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