Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0006522Openbravo ERPA. Platformpublic2008-12-13 00:372009-03-06 12:34
mtaal 
mtaal 
normalminoralways
closedfixed 
5
pi 
 
Core
No
0006522: Prevent persistent sessions with Tomcat
Tomcat can store the session and its data when Tomcat gets restarted. Then after restarting the previous sessions are again read in-memory. However, with hibernate this does not work, because when an object is deserialized an error is thrown.

The solution is to make Tomcat not persist sessions.

gr. Martin
No tags attached.
Issue History
2008-12-13 00:37mtaalNew Issue
2008-12-13 00:37mtaalAssigned To => rafaroda
2008-12-13 00:37mtaalsf_bug_id0 => 2422896
2008-12-13 00:37mtaalRegression testing => No
2008-12-18 11:56jpabloaeNote Added: 0011512
2008-12-19 11:48mtaalNote Added: 0011584
2008-12-19 11:49mtaalAssigned Torafaroda => mtaal
2008-12-20 00:03svnbotCheckin
2008-12-20 00:03svnbotNote Added: 0011623
2008-12-20 00:03svnbotStatusnew => resolved
2008-12-20 00:03svnbotResolutionopen => fixed
2008-12-20 00:03svnbotsvn_revision => 11430
2009-03-06 12:34psarobeStatusresolved => closed

Notes
(0011512)
jpabloae   
2008-12-18 11:56   
I see two options:

1) We force a persistent sessions restart in the ERP:
http://tomcat.apache.org/tomcat-6.0-doc/config/manager.html#Restart%20Persistence [^]

2) We force users to change their tomcat configuration:
http://www.unicon.net/node/608 [^]

1) Would mean a developer has to fix it. 2) means everyone should fix it in their installations, and us in the virtual appliances.

Martin: which option do think it is better technically?
(0011584)
mtaal   
2008-12-19 11:48   
Hi Juan Pablo,
After some more thought.
I have worked on some changes to make it possible to serialize and de-serialize the info that is stored in the session. This seems to work fine. So I will close the call when this is solved.

gr. Martin
(0011623)
svnbot   
2008-12-20 00:03   
Repository: openbravo
Revision: 11430
Author: mtaal
Date: 2008-12-20 00:03:42 +0100 (Sat, 20 Dec 2008)

Fixes issue 6522

---
U trunk/src/org/openbravo/dal/core/OBContext.java
---

https://dev.openbravo.com/websvn/openbravo/?rev=11430&sc=1 [^]