You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by aj...@wipro.com on 2005/08/03 13:19:34 UTC

How to turn off perssitent sessions in Tomcat 4.1?

Hi,



I am using Apache+Tomcat 4.1.29 for running my application. When I am
restarting Tomcat I am getting persistent session loading exception like
this:



  2004-03-11 13:52:18 StandardManager[] IOException while loading
persisted sessions:

   java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:

   org.apache.coyote.tomcat4.CoyoteRequestFacade

   java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:

   org.apache.coyote.tomcat4.CoyoteRequestFacade

           at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)

           at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)

           at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)

           at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646
)

           at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)

           at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)

           at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)

           at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646
)

           at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)

           at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)

           at


org.apache.catalina.session.StandardSession.readObject(StandardSession.j
ava:1369)



I am not using clustering. I want to turn off the session persistence in
Tomcat 4.1.29?

I have tried so many options with StandardManager in server.xml. But I
was not successful.

Please help me out in this?



Regards

AK











Confidentiality Notice

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.

Re: How to turn off perssitent sessions in Tomcat 4.1?

Posted by Edgar Alves <ea...@mobicomp.com>.
Hi,
  On Tomcat 5.5 you can turn persistent session loading off by setting
the SessionManager pathname attribute to "". Hope that helps.

  -- Edgar Alves

ajith.skumar@wipro.com wrote:

>Hi,
>
>
>
>
>I am using Apache+Tomcat 4.1.29 for running my application. When I am
>restarting Tomcat I am getting persistent session loading exception like
>this:
>
>
>
>
>  2004-03-11 13:52:18 StandardManager[] IOException while loading
>persisted sessions:
>
>
>   java.io.WriteAbortedException: writing aborted;
>java.io.NotSerializableException:
>
>
>   org.apache.coyote.tomcat4.CoyoteRequestFacade
>
>   java.io.WriteAbortedException: writing aborted;
>java.io.NotSerializableException:
>
>
>   org.apache.coyote.tomcat4.CoyoteRequestFacade
>
>           at
>java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
>
>           at
>java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
>
>           at
>java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
>
>           at
>java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646
>)
>
>           at
>java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
>
>           at
>java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
>
>           at
>java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
>
>           at
>java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646
>)
>
>           at
>java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
>
>           at
>java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
>
>           at
>
>
>
>
>org.apache.catalina.session.StandardSession.readObject(StandardSession.j
>ava:1369)
>
>
>
>
>I am not using clustering. I want to turn off the session persistence in
>Tomcat 4.1.29?
>
>I have tried so many options with StandardManager in server.xml. But I
>was not successful.
>
>Please help me out in this?
>
>
>
>
>Regards
>
>AK
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org