You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Santosh <sa...@yahoo.com> on 2006/03/13 14:53:18 UTC
Problem disabling session serialization duing shutdown.
Greetings everyone,
I am using Tomcat 5.0.19 on Fedora Linux, Core 2. My catalina.out shows the ugly exceptions during shutdown.
Some Googling revealed that session serialization can be disabled by added the following XML snipett in the context.xml:
<Manager pathname=""/>
I was unable to find any context.xml as such, so I put the XML snippet in the <Context> descriptor of my webapplication in the server.xml file. Yet no fruit.
Was I supposed to add the afore-mentioned XML snipet in "context.xml" only? Or is it some other problem?
Following is the stack trace if of any relavance:
SEVERE: Exception unloading sessions to persistent storage
java.io.FileNotFoundException: /opt/tomcat2/work/Catalina/localhost/manager/SESSIONS.ser (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:511)
at org.apache.catalina.session.StandardManager.unload(StandardManager.java:485)
at org.apache.catalina.session.StandardManager.stop(StandardManager.java:687)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4496)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:952)
at org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDeployer.java:670)
at org.apache.catalina.core.StandardHost.remove(StandardHost.java:946)
at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1028)
at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1005)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:351)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1123)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1135)
at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:483)
at org.apache.catalina.core.StandardService.stop(StandardService.java:542)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2347)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:605)
at org.apache.catalina.startup.Catalina.start(Catalina.java:580)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
---------------------------------
Yahoo! Mail
Bring photos to life! New PhotoMail makes sharing a breeze.
Re: AW: Problem disabling session serialization duing shutdown.
Posted by Peter Rossbach <pr...@objektpark.de>.
or shorter with
<Context docBase="/<your-doc-base>" path="/<your-context>">
<Manager pathname="" />
</Context>
at tomcat 5.5 add the description at your META-INF/context.xml
<Context>
<Manager pathname="" />
</Context>
or at the conf/context.xml
:-)
Peter
Am 14.03.2006 um 15:31 schrieb Michael Südkamp:
> Hmm, context.xml? I know only of server.xml. At least on Windows.
> Here is a
> context snippet for server.xml which disables session persistence.
>
> Michael
>
> <Context docBase="/<your-doc-base>" path="/<your-context>">
> <Manager
> className="org.apache.catalina.session.PersistentManager"
> saveOnRestart="false">
> <Store
> className="org.apache.catalina.session.FileStore"/>
> </Manager>
> </Context>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
AW: Problem disabling session serialization duing shutdown.
Posted by Michael Südkamp <mi...@docware.de>.
Hmm, context.xml? I know only of server.xml. At least on Windows. Here is a
context snippet for server.xml which disables session persistence.
Michael
<Context docBase="/<your-doc-base>" path="/<your-context>">
<Manager className="org.apache.catalina.session.PersistentManager"
saveOnRestart="false">
<Store className="org.apache.catalina.session.FileStore"/>
</Manager>
</Context>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org