Hi,
OK, so we don't see the Logger being added as a session attribute.
Could it be a leftover from a previous version of your webapp?
If you stop tomcat, remove the session.cer file from under
$CATALINA_HOME/work, start tomcat, use your webapp (to create sessions),
then do your WAR copy and restart, do you still get the error?
I don't see any session.cer file anywhere. $CATALINA_HOME/work, or anywhere along the path
work/Catalina/localhost/chartms
Yoav Shapira Millennium Research Informatics
struts-----Original Message----- From: Mark Shifman [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 3:44 PM To: Tomcat Users List Subject: Re: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.commons.logging.impl.Log4JLogger
Shapira, Yoav wrote:
Hi,
This is a very simple application in struts. My only sessionattributes
are a String , an Integer , an ArrayList and a String[]. the
SeeOK. Write a simple HttpSessionAttributeListener that just logs in theform beans, are DyanValidatorForm which are serializable.
attributeAdded method the type of the attribute that's been added.
forgetif that proves the logger is being added to your session. If it does,
we'll have to figure out what's doing the adding. If it doesn't,
alsothis whole approach ;)the output of the listener follows -- the last context
destroyed/initialized follows a copy of the war to webapps. I have
copied the first few linesl=,y
of the error dump:
$ grep -e "\[/chartms\]"
'/home/jakarta-tomcat-5.0.19/logs/localhost_log.2004-03-22.txt'
2004-03-22 15:27:43 StandardContext[/chartms]SessionListener:
contextInitialized()
2004-03-22 15:28:13 StandardContext[/chartms]SessionListener:
contextDestroyed()
2004-03-22 15:29:05 StandardContext[/chartms]SessionListener:
contextInitialized()
2004-03-22 15:29:10 StandardContext[/chartms]SessionListener:
contextDestroyed()
2004-03-22 15:29:26 StandardContext[/chartms]SessionListener:
contextInitialized()
2004-03-22 15:29:33 StandardContext[/chartms]SessionListener:
attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'tempfiles', '[]')
2004-03-22 15:29:33 StandardContext[/chartms]SessionListener:
attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'chartnum', '0')
2004-03-22 15:29:33 StandardContext[/chartms]SessionListener:
attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'UploadForm',
'[EMAIL PROTECTED]')
2004-03-22 15:33:18 StandardContext[/chartms]SessionListener:
attributeAdded('12967DF686489F6E34AC3035F55BFE18',
'org.apache.struts.action.LOCALE', 'en_US')
2004-03-22 15:33:18 StandardContext[/chartms]SessionListener:
attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'UploadForm',
'[EMAIL PROTECTED]')
2004-03-22 15:33:18 StandardContext[/chartms]SessionListener:
attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'tempfiles',
'[E-L-013H7-DWARD-OVCA132-F1-R1.TXT]')
2004-03-22 15:33:18 StandardContext[/chartms]SessionListener:
attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'ChartForm',
'DynaActionForm[dynaClass=ChartForm,nthpoint=,ms_files={},offset=,xpixe
pixel=]')l=,y
2004-03-22 15:33:22 StandardContext[/chartms]SessionListener:
attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'ChartForm',
'DynaActionForm[dynaClass=ChartForm,nthpoint=,ms_files={},offset=,xpixe
pixel=]')LL>,
2004-03-22 15:33:23 StandardContext[/chartms]SessionListener:
attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'chartnum', '0')
2004-03-22 15:33:23 StandardContext[/chartms]SessionListener:
attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'rechart_files',
'[Ljava.lang.String;@6147d9')
2004-03-22 15:33:24 StandardContext[/chartms]SessionListener:
attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'RechartForm',
'DynaActionForm[dynaClass=RechartForm,xlow=,nthpoint=,xhigh=,yrange=<NU
ylow=,yhigh=,offset=,xpixel=,xrange=<NULL>,ypixel=]')LL>,
2004-03-22 15:35:10 StandardContext[/chartms]SessionListener:
attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'RechartForm',
'DynaActionForm[dynaClass=RechartForm,xlow=,nthpoint=,xhigh=,yrange=<NU
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)ylow=,yhigh=,offset=,xpixel=,xrange=<NULL>,ypixel=]') 2004-03-22 15:35:11 StandardContext[/chartms]SessionListener: attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'chartnum', '1') 2004-03-22 15:35:47 StandardContext[/chartms]SessionListener: contextDestroyed() 2004-03-22 15:35:48 StandardContext[/chartms]SessionListener: contextInitialized()
ERROR 2004-03-22 15:35:48,737 doLoad(StandardManager.java:481)
IOException while loading persisted sessions:
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.commons.logging.impl.Log4JLogger
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.commons.logging.impl.Log4JLogger
at
at)
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845
at6)
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:164
atjava.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)java
at
org.apache.catalina.session.StandardSession.readObject(StandardSession.
:1376)ion.
at
org.apache.catalina.session.StandardSession.readObjectData(StandardSess
java:920):463
at
org.apache.catalina.session.StandardManager.doLoad(StandardManager.java
)90)
at
org.apache.catalina.session.StandardManager.load(StandardManager.java:3
at704)
org.apache.catalina.session.StandardManager.start(StandardManager.java:
at2)
org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:54
atava:
org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig.j
348)intended
Yoav Shapiracommunication, and may contain information that is confidential,
This e-mail, including any attachments, is a confidential business
proprietary and/or privileged. This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else. If you are not the(an)
recipient, please immediately delete this e-mail from your computersystem
and notify the sender. Thank you.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Mark Shifman MD. Ph.D. Yale Center for Medical Informatics Phone (203)737-5219 [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]