You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Martin Gainty <mg...@hotmail.com> on 2007/12/06 00:36:09 UTC

Re: [Axis2] FileNotFoundException during session unloading

Good Evening Michele

if you take a look at /META-INF/context.xml
you'll have to custom define your own javax.servlet.context.tempdir

      <attribute name="workDir" required="false">
        <p>Pathname to a scratch directory to be provided by this Context
        for temporary read-write use by servlets within the associated web
        application.  This directory will be made visible to servlets in the
        web application by a servlet context attribute (of type
        <code>java.io.File</code>) named
        <code>javax.servlet.context.tempdir</code> as described in the
        Servlet Specification.  If not specified, a suitable directory
        underneath <code>$CATALINA_HOME/work</code> will be provided.</p>
      </attribute>

the situation  is that this mechanism works great when tomcat is stopped and
started as the $CATALINA_HOME/work folder is cleaned
hopefully specifying the new javax.servlet.context.tempdir will enable you
to redirect SESSIONS.ser to a folder which is not deleted

In any event I would encourage you to post this to users@tomcat.apache.org

HTH/
Martin--
----- Original Message -----
From: "Michele Mazzucco" <Mi...@ncl.ac.uk>
To: "axis2" <ax...@ws.apache.org>
Sent: Wednesday, December 05, 2007 1:37 PM
Subject: [Axis2] FileNotFoundException during session unloading


> Hi all,
>
> I'm running axis2 1.3 inside tomcat 6.0.13 (NIO connector) and I get
> this exception:
>
> 05-Dec-2007 18:26:39 org.apache.catalina.session.StandardManager stop
> SEVERE: Exception unloading sessions to persistent storage
> java.io.FileNotFoundException:
> $HOME/apache-tomcat-6.0.13/work/Catalina/localhost/axis2/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:48
9)
>         at
>
org.apache.catalina.session.StandardManager.unload(StandardManager.java:463)
>         at
> org.apache.catalina.session.StandardManager.stop(StandardManager.java:667)
>         at
> org.apache.catalina.core.StandardContext.stop(StandardContext.java:4496)
>         at
> org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924)
>         at
> org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1180)
>         at
> org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1151)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313)
>         at
>
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:117)
>         at
> org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086)
>         at
> org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
>         at
> org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
>         at
> org.apache.catalina.core.StandardService.stop(StandardService.java:584)
>         at
> org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
>         at org.apache.catalina.startup.Catalina.stop(Catalina.java:616)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:591)
>         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:597)
>         at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>         at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>
>
>
>
> I'm testing only one service -- and it's deployed in request scope.
>
> Any idea?
> Michele
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: [Axis2] FileNotFoundException during session unloading

Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
Martin,

it must be a tomcat issue - I get the same error even when
$CATALINA_HOME is set.


Michele

On Wed, 2007-12-05 at 18:36 -0500, Martin Gainty wrote:
> Good Evening Michele
> 
> if you take a look at /META-INF/context.xml
> you'll have to custom define your own javax.servlet.context.tempdir
> 
>       <attribute name="workDir" required="false">
>         <p>Pathname to a scratch directory to be provided by this Context
>         for temporary read-write use by servlets within the associated web
>         application.  This directory will be made visible to servlets in the
>         web application by a servlet context attribute (of type
>         <code>java.io.File</code>) named
>         <code>javax.servlet.context.tempdir</code> as described in the
>         Servlet Specification.  If not specified, a suitable directory
>         underneath <code>$CATALINA_HOME/work</code> will be provided.</p>
>       </attribute>
> 
> the situation  is that this mechanism works great when tomcat is stopped and
> started as the $CATALINA_HOME/work folder is cleaned
> hopefully specifying the new javax.servlet.context.tempdir will enable you
> to redirect SESSIONS.ser to a folder which is not deleted
> 
> In any event I would encourage you to post this to users@tomcat.apache.org
> 
> HTH/
> Martin--
> ----- Original Message -----
> From: "Michele Mazzucco" <Mi...@ncl.ac.uk>
> To: "axis2" <ax...@ws.apache.org>
> Sent: Wednesday, December 05, 2007 1:37 PM
> Subject: [Axis2] FileNotFoundException during session unloading
> 
> 
> > Hi all,
> >
> > I'm running axis2 1.3 inside tomcat 6.0.13 (NIO connector) and I get
> > this exception:
> >
> > 05-Dec-2007 18:26:39 org.apache.catalina.session.StandardManager stop
> > SEVERE: Exception unloading sessions to persistent storage
> > java.io.FileNotFoundException:
> > $HOME/apache-tomcat-6.0.13/work/Catalina/localhost/axis2/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:48
> 9)
> >         at
> >
> org.apache.catalina.session.StandardManager.unload(StandardManager.java:463)
> >         at
> > org.apache.catalina.session.StandardManager.stop(StandardManager.java:667)
> >         at
> > org.apache.catalina.core.StandardContext.stop(StandardContext.java:4496)
> >         at
> > org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924)
> >         at
> > org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1180)
> >         at
> > org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1151)
> >         at
> > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313)
> >         at
> >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
> t.java:117)
> >         at
> > org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086)
> >         at
> > org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
> >         at
> > org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
> >         at
> > org.apache.catalina.core.StandardService.stop(StandardService.java:584)
> >         at
> > org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
> >         at org.apache.catalina.startup.Catalina.stop(Catalina.java:616)
> >         at org.apache.catalina.startup.Catalina.start(Catalina.java:591)
> >         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:597)
> >         at
> > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
> >         at
> > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> >
> >
> >
> >
> > I'm testing only one service -- and it's deployed in request scope.
> >
> > Any idea?
> > Michele
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 


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