You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michele Mazzucco <Mi...@ncl.ac.uk> on 2007/12/12 11:14:57 UTC

FileNotFoundException (SESSIONS.ser)

Hi all,

I'm running Axis2 1.3 inside Tomcat 6.0.13 (my machine is a Linux box)
and I get the following problem ($CATALINA_HOME is set
to /home/nmm42/devel/tomcat/apache-tomcat-6.0.13)


~/devel/tomcat/apache-tomcat-6.0.13/bin> ./shutdown.sh
Using CATALINA_BASE:   /home/nmm42/devel/tomcat/apache-tomcat-6.0.13
Using CATALINA_HOME:   /home/nmm42/devel/tomcat/apache-tomcat-6.0.13
Using
CATALINA_TMPDIR: /home/nmm42/devel/tomcat/apache-tomcat-6.0.13/temp
Using JRE_HOME:       /usr/java/jdk1.6.0_03
nmm42@eskdale:~/devel/tomcat/apache-tomcat-6.0.13/bin>
cat ../logs/catalina.out
12-Dec-2007 09:55:05 org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance
in production environments was not found on the
java.library.path: /usr/java/jdk1.6.0_03/jre/lib/i386/client:/usr/java/jdk1.6.0_03/jre/lib/i386:/usr/java/jdk1.6.0_03/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
12-Dec-2007 09:55:05 org.apache.coyote.http11.Http11NioProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
12-Dec-2007 09:55:05 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 863 ms
12-Dec-2007 09:55:05 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
12-Dec-2007 09:55:05 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
12-Dec-2007 09:55:05 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive axis2.war
[INFO] Deploying module: ping-SNAPSHOT -
file:/home/nmm42/devel/tomcat/apache-tomcat-6.0.13/webapps/axis2/WEB-INF/modules/ping-SNAPSHOT.mar
[INFO] Deploying module: soapmonitor-SNAPSHOT -
file:/home/nmm42/devel/tomcat/apache-tomcat-6.0.13/webapps/axis2/WEB-INF/modules/soapmonitor-SNAPSHOT.mar
[INFO] Deploying module: metadataExchange-SNAPSHOT -
file:/home/nmm42/devel/tomcat/apache-tomcat-6.0.13/webapps/axis2/WEB-INF/modules/mex-SNAPSHOT.mar
[INFO] Deploying module: addressing-SNAPSHOT -
file:/home/nmm42/devel/tomcat/apache-tomcat-6.0.13/webapps/axis2/WEB-INF/modules/addressing-SNAPSHOT.mar
[INFO] Deploying module: script-SNAPSHOT -
file:/home/nmm42/devel/tomcat/apache-tomcat-6.0.13/webapps/axis2/WEB-INF/modules/axis2-scripting-SNAPSHOT.mar
[INFO] script module activated
[INFO] Deploying Web service: version-SNAPSHOT.aar -
file:/home/nmm42/devel/tomcat/apache-tomcat-6.0.13/webapps/axis2/WEB-INF/services/version-SNAPSHOT.aar
12-Dec-2007 09:55:08 org.apache.coyote.http11.Http11NioProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
12-Dec-2007 09:55:08 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
12-Dec-2007 09:55:08 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31  config=null
12-Dec-2007 09:55:08 org.apache.catalina.startup.Catalina start
INFO: Server startup in 2694 ms
12-Dec-2007 09:58:57 org.apache.coyote.http11.Http11NioProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
12-Dec-2007 09:58:58 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
12-Dec-2007 09:58:59 org.apache.catalina.session.StandardManager
doUnload
SEVERE: IOException while saving persisted sessions:
java.io.FileNotFoundException: /home/nmm42/devel/tomcat/apache-tomcat-6.0.13/work/Catalina/localhost/axis2/SESSIONS.ser (No such file or directory)
java.io.FileNotFoundException: /home/nmm42/devel/tomcat/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:489)
        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(LifecycleSupport.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)
12-Dec-2007 09:58:59 org.apache.catalina.session.StandardManager stop
SEVERE: Exception unloading sessions to persistent storage
java.io.FileNotFoundException: /home/nmm42/devel/tomcat/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:489)
        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(LifecycleSupport.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)
12-Dec-2007 09:58:59 org.apache.coyote.http11.Http11NioProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080


The tomcat configuration is the default one (apart from the NIO
connector). 
Any idea?


Thanks,
Michele






---------------------------------------------------------------------
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 (SESSIONS.ser) during tomcat shutdown

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Martin Gainty [mailto:mgainty@hotmail.com] 
> Subject: Re: [Axis2] FileNotFoundException (SESSIONS.ser) 
> during tomcat shutdown
> 
> The serialised session files are kept in the temp folder

No, they're kept in Tomcat's work directory, which is normally (and
definitely in Michele's case) $CATALINA_HOME/work/Catalina/localhost.
That directory is not being deleted, but a specific one underneath it
(axis2) is disappearing, while Tomcat is running.  Normally, only an
undeployment will get rid of a specific webapp's work sub-directory, so
I suspect something in the webapp is deleting it, perhaps by confusing
"temp" with "work".

> so starting tomcat with 
> tomcat.work.dir=NewFolderThatWontBeDeleted will solve the problem

Searching the source code and experimentation show that neither Tomcat
5.5 nor 6.0 recognize that system property.  If you think it does,
please point out where in the source code it happens.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
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 (SESSIONS.ser) during tomcat shutdown

Posted by Martin Gainty <mg...@hotmail.com>.
Michele

The serialised session files are kept in the temp folder so starting tomcat
with tomcat.work.dir=NewFolderThatWontBeDeleted will solve the problem
e.g. assume for the moment you have a perm folder assigned to you called
/usr/local/michele
%CATALINA_HOME%/bin/java -Dtomcat.work.dir=/usr/local/michele bootstrap.jar

Martin-
----- Original Message -----
From: "Michele Mazzucco" <Mi...@ncl.ac.uk>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Wednesday, December 12, 2007 10:31 AM
Subject: Re: [Axis2] FileNotFoundException (SESSIONS.ser) during tomcat
shutdown


> For some obscure reason the directory is deleted (!!!) and the same
> problem occurs.
>
> Michele
>
>
> On 12 Dec 2007, at 14:46, Caldarale, Charles R wrote:
>
> > What happens if you manually create the axis2 directory?
>
>
> ---------------------------------------------------------------------
> 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
>
>


---------------------------------------------------------------------
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 (SESSIONS.ser) during tomcat shutdown

Posted by aschoedl <an...@gmail.com>.

Caldarale, Charles R wrote:
> 
>> From: Michele Mazzucco [mailto:Michele.Mazzucco@ncl.ac.uk] 
> 
>> The folder is created at tomcat startup but when I stop tomcat  
>> it still complains because it doesn't find the file SESSIONS.ser  
>> (i.e. the same error occurs).
> 
> 

Looks a lot like an Axis problem after all:
https://issues.apache.org/jira/browse/AXIS2-3052
"Undeploy fails to persist sessions on Tomcat 5.5 and 6"

- Andreas
-- 
View this message in context: http://www.nabble.com/FileNotFoundException-%28SESSIONS.ser%29-tp14292358p14878817.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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 (SESSIONS.ser) during tomcat shutdown

Posted by aschoedl <an...@gmail.com>.

Caldarale, Charles R wrote:
> 
>> From: Michele Mazzucco [mailto:Michele.Mazzucco@ncl.ac.uk] 
> 
>> The folder is created at tomcat startup but when I stop tomcat  
>> it still complains because it doesn't find the file SESSIONS.ser  
>> (i.e. the same error occurs).
> 
> 

Looks a lot like an Axis problem after all:
https://issues.apache.org/jira/browse/AXIS2-3052
"Undeploy fails to persist sessions on Tomcat 5.5 and 6"

- Andreas
-- 
View this message in context: http://www.nabble.com/FileNotFoundException-%28SESSIONS.ser%29-tp14292358p14878817.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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 (SESSIONS.ser) during tomcat shutdown

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Michele Mazzucco [mailto:Michele.Mazzucco@ncl.ac.uk] 
> Subject: Re: [Axis2] FileNotFoundException (SESSIONS.ser) 
> during tomcat shutdown
> 
> The folder is created at tomcat startup but when I stop tomcat  
> it still complains because it doesn't find the file SESSIONS.ser  
> (i.e. the same error occurs).

You're right; I thought I had checked that Tomcat would still use the
<Host> workDir for SESSIONS.ser, but further testing shows that's not
true.

Something else to try is configuring a nested <Manager> element inside
the axis2 <Context>, and specifying the pathname attribute as an
absolute path to where SESSIONS.ser should be stored, while having some
alternate location for the axis2 <Context> workDir attribute.  The
pathname attribute should include the file name (SESSIONS.ser), and
every component of the path must already exist prior to Tomcat shutdown.
In your situation, you could try the pathname value:
/home/nmm42/devel/tomcat/apache-tomcat-6.0.13/work/Catalina/localhost/ax
is2/SESSIONS.ser

However, you really should search the webapp source code for references
to javax.servlet.context.tempdir, and fix the code that's removing that
directory.  Deletion of the workDir affects not only session
persistence, but also trashes class files generated from JSPs.

> The only workaround is to disable session persistence 
> ($CATALINA/conf/context.xml).

That affects all webapps; you should really apply workarounds only to
the <Context> element for the webapp that's causing trouble, until you
get it fixed.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
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 (SESSIONS.ser) during tomcat shutdown

Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
On 13 Dec 2007, at 16:35, Caldarale, Charles R wrote:

>> From: Michele Mazzucco [mailto:Michele.Mazzucco@ncl.ac.uk]
>> Subject: Re: [Axis2] FileNotFoundException (SESSIONS.ser)
>> during tomcat shutdown
>>
>> Where do I find the <Context> element related to axis2 (which
>> is a servlet)?
>
> First you said axis2 is a webapp, now you say it's a servlet; I  
> suspect
> the former is correct.  A webapp can utilize many servlets, which I
> think is the case here.

OK. Axis2 is a web app which includes a SOAP engine (which is a  
servlet) and an admin page (which is another servlet)
>
>> Should it be inside $CATALINA_HOME/webapps/axis2/WEB-INF/web.xml?
>
> No, the contents of that file are defined by the servlet spec  
> (JSR-154),
> whereas the <Context> element is specific to Tomcat.  It can be in
> webapps/axis2/META-INF/context.xml or in
> conf/Catalina/localhost/axis2.xml; the latter overrides the former if
> it's in both places.  (It can also be in server.xml, but that location
> should not be used for recent versions of Tomcat.)  It may not  
> exist at
> all, in which case you'll need to create it in one of the above
> locations, with just the workDir attribute.
>
> The relevant doc is here:
> http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

Done. The folder is created at tomcat startup but when I stop tomcat  
it still complains because it doesn't find the file SESSIONS.ser  
(i.e. the same error occurs).
The only workaround is to disable session persistence ($CATALINA/conf/ 
context.xml).

Michele
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE  
> PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e- 
> mail
> and its attachments from all computers.
>
> ---------------------------------------------------------------------
> 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
>


---------------------------------------------------------------------
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 (SESSIONS.ser) during tomcat shutdown

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Michele Mazzucco [mailto:Michele.Mazzucco@ncl.ac.uk] 
> Subject: Re: [Axis2] FileNotFoundException (SESSIONS.ser) 
> during tomcat shutdown
> 
> Where do I find the <Context> element related to axis2 (which  
> is a servlet)?

First you said axis2 is a webapp, now you say it's a servlet; I suspect
the former is correct.  A webapp can utilize many servlets, which I
think is the case here.

> Should it be inside $CATALINA_HOME/webapps/axis2/WEB-INF/web.xml?

No, the contents of that file are defined by the servlet spec (JSR-154),
whereas the <Context> element is specific to Tomcat.  It can be in
webapps/axis2/META-INF/context.xml or in
conf/Catalina/localhost/axis2.xml; the latter overrides the former if
it's in both places.  (It can also be in server.xml, but that location
should not be used for recent versions of Tomcat.)  It may not exist at
all, in which case you'll need to create it in one of the above
locations, with just the workDir attribute.

The relevant doc is here:
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
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 (SESSIONS.ser) during tomcat shutdown

Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
On 13 Dec 2007, at 15:33, Caldarale, Charles R wrote:

>> From: Michele Mazzucco [mailto:Michele.Mazzucco@ncl.ac.uk]
>> Subject: Re: [Axis2] FileNotFoundException (SESSIONS.ser)
>> during tomcat shutdown
>>
>> BTW I've set workDir in $CATALINA_HOME/conf/server.xml (inside the
>> Host section) to point to a temp folder in my home.
>
> Don't change the workDir attribute for the <Host> - let that one  
> stay as
> the default.  The idea is to give the webapp a different work  
> directory
> than the one Tomcat uses.  You need to change just the workDir  
> attribute
> for the webapp, inside its <Context> element.


Ok... but I haven't been working directly with servlet for a long  
time. Where do I find the <Context> element related to axis2 (which  
is a servlet)? Should it be inside $CATALINA_HOME/webapps/axis2/WEB- 
INF/web.xml? If so, there's no Context element in such file.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE  
> PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e- 
> mail
> and its attachments from all computers.
>
> ---------------------------------------------------------------------
> 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
>


---------------------------------------------------------------------
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 (SESSIONS.ser) during tomcat shutdown

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Michele Mazzucco [mailto:Michele.Mazzucco@ncl.ac.uk] 
> Subject: Re: [Axis2] FileNotFoundException (SESSIONS.ser) 
> during tomcat shutdown
> 
> BTW I've set workDir in $CATALINA_HOME/conf/server.xml (inside the  
> Host section) to point to a temp folder in my home.

Don't change the workDir attribute for the <Host> - let that one stay as
the default.  The idea is to give the webapp a different work directory
than the one Tomcat uses.  You need to change just the workDir attribute
for the webapp, inside its <Context> element.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
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 (SESSIONS.ser) during tomcat shutdown

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

BTW I've set workDir in $CATALINA_HOME/conf/server.xml (inside the  
Host section) to point to a temp folder in my home. The folder and  
all subfolders are created, apart from axis2... so the error still  
occurs.
What do you think?

Thanks,
Michele
On 13 Dec 2007, at 11:29, Michele Mazzucco wrote:

>> As an experiment, you can configure the name of the webapp's  
>> tempdir via
>> the <Context> attribute workDir; Tomcat creates this directory during
>> deployment of the webapp, but otherwise doesn't seem to touch it.
>> Setting the workDir attribute to some other location might solve your
>> problem, although the real fix is to have your webapp stop deleting
>> things it didn't create.


---------------------------------------------------------------------
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 (SESSIONS.ser) during tomcat shutdown

Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
On 13 Dec 2007, at 00:52, Caldarale, Charles R wrote:

>> From: Michele Mazzucco [mailto:Michele.Mazzucco@ncl.ac.uk]
>> Subject: Re: [Axis2] FileNotFoundException (SESSIONS.ser)
>> during tomcat shutdown
>>
>> I've tried with a clean tomcat 6.0.13 setup where only axis2 1.3 was
>> deployed (tomcat 5.5.20 behaves the same) - no web services were
>> deployed in axis2.
>
> Tomcat provides space for a webapp's use via the context attribute
> javax.servlet.context.tempdir; this normally points to the directory
> work/Catalina/localhost/[appname], which is the one getting  
> deleted.  I
> suspect your webapp is taking the value of that attribute, using it  
> for
> a bit, and then erroneously thinking it should clean up by deleting  
> it.
>
> As an experiment, you can configure the name of the webapp's  
> tempdir via
> the <Context> attribute workDir; Tomcat creates this directory during
> deployment of the webapp, but otherwise doesn't seem to touch it.
> Setting the workDir attribute to some other location might solve your
> problem, although the real fix is to have your webapp stop deleting
> things it didn't create.
>

Chuck,

it's not my webapp, it's axis2!
Now the "problem" is that you are telling me that the problem is  
axis2 while the axis2 guys suggest me that it could be a tomcat issue.


Michele

> - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE  
> PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e- 
> mail
> and its attachments from all computers.
>
> ---------------------------------------------------------------------
> 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
>


---------------------------------------------------------------------
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 (SESSIONS.ser) during tomcat shutdown

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Michele Mazzucco [mailto:Michele.Mazzucco@ncl.ac.uk] 
> Subject: Re: [Axis2] FileNotFoundException (SESSIONS.ser) 
> during tomcat shutdown
> 
> I've tried with a clean tomcat 6.0.13 setup where only axis2 1.3 was  
> deployed (tomcat 5.5.20 behaves the same) - no web services were  
> deployed in axis2.

Tomcat provides space for a webapp's use via the context attribute
javax.servlet.context.tempdir; this normally points to the directory
work/Catalina/localhost/[appname], which is the one getting deleted.  I
suspect your webapp is taking the value of that attribute, using it for
a bit, and then erroneously thinking it should clean up by deleting it.

As an experiment, you can configure the name of the webapp's tempdir via
the <Context> attribute workDir; Tomcat creates this directory during
deployment of the webapp, but otherwise doesn't seem to touch it.
Setting the workDir attribute to some other location might solve your
problem, although the real fix is to have your webapp stop deleting
things it didn't create.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
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 (SESSIONS.ser) during tomcat shutdown

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

my machine is a linux box running Open Suse 10.2 and sun jdk 1.6.0_03  
(but jdk 1.5.0_10 gives me the same problem).
I've tried with a clean tomcat 6.0.13 setup where only axis2 1.3 was  
deployed (tomcat 5.5.20 behaves the same) - no web services were  
deployed in axis2.

Any clue?
Michele

On 12 Dec 2007, at 15:47, Caldarale, Charles R wrote:

>> From: Michele Mazzucco [mailto:Michele.Mazzucco@ncl.ac.uk]
>> Subject: Re: [Axis2] FileNotFoundException (SESSIONS.ser)
>> during tomcat shutdown
>>
>> For some obscure reason the directory is deleted (!!!) and the same
>> problem occurs.
>
> Sounds like you might have a somewhat malevolant webapp...
>
> Does your file system support any kind of delete tracking?
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE  
> PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e- 
> mail
> and its attachments from all computers.
>
> ---------------------------------------------------------------------
> 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
>


---------------------------------------------------------------------
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 (SESSIONS.ser) during tomcat shutdown

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Michele Mazzucco [mailto:Michele.Mazzucco@ncl.ac.uk] 
> Subject: Re: [Axis2] FileNotFoundException (SESSIONS.ser) 
> during tomcat shutdown
> 
> For some obscure reason the directory is deleted (!!!) and the same  
> problem occurs.

Sounds like you might have a somewhat malevolant webapp...

Does your file system support any kind of delete tracking?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
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 (SESSIONS.ser) during tomcat shutdown

Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
For some obscure reason the directory is deleted (!!!) and the same  
problem occurs.

Michele


On 12 Dec 2007, at 14:46, Caldarale, Charles R wrote:

> What happens if you manually create the axis2 directory?


---------------------------------------------------------------------
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 (SESSIONS.ser) during tomcat shutdown

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Michele Mazzucco [mailto:Michele.Mazzucco@ncl.ac.uk] 
> Subject: Re: [Axis2] FileNotFoundException (SESSIONS.ser) 
> during tomcat shutdown
> 
> but the problem seems to be that the axis2 directory does
> not exist under $CATALINA_HOME/work/Catalina/localhost.

Tomcat normally creates a directory for each webapp under
work/Catalina/localhost during deployment.  If it's not there now,
either someone deleted it while Tomcat was running or there's a
permissions problem.

What happens if you manually create the axis2 directory?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
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 (SESSIONS.ser) during tomcat shutdown

Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
On 12 Dec 2007, at 13:54, Caldarale, Charles R wrote:

>> From: Michele Mazzucco [mailto:Michele.Mazzucco@ncl.ac.uk]
>> Subject: [Axis2] FileNotFoundException (SESSIONS.ser) during
>> tomcat shutdown
>
> (Please don't cross-post to multiple lists; that makes following a
> thread nearly impossible.)

I'm sorry Chuck. I've initially exposed my problem to axis-users, but  
I've been told to try on tomcat-users.
>
>> Some more details. I don't know whether this is a Tomcat or Axis2
>> issue, but the problem seems to be that the axis2 directory does not
>> exist under $CATALINA_HOME/work/Catalina/localhost.
>
> 1) Are there other directories under
> $CATALINA_HOME/work/Catalina/localhost?

Yes, _, docs, examples, manager and host_manager
>
> 2) Is there a permissions problem between whatever userid you're  
> running
> Tomcat with and the above location?

No.
>
>  - Chuck

Michele
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE  
> PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e- 
> mail
> and its attachments from all computers.
>
> ---------------------------------------------------------------------
> 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
>


---------------------------------------------------------------------
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 (SESSIONS.ser) during tomcat shutdown

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Michele Mazzucco [mailto:Michele.Mazzucco@ncl.ac.uk] 
> Subject: [Axis2] FileNotFoundException (SESSIONS.ser) during 
> tomcat shutdown

(Please don't cross-post to multiple lists; that makes following a
thread nearly impossible.)

> Some more details. I don't know whether this is a Tomcat or Axis2  
> issue, but the problem seems to be that the axis2 directory does not  
> exist under $CATALINA_HOME/work/Catalina/localhost.

1) Are there other directories under
$CATALINA_HOME/work/Catalina/localhost?

2) Is there a permissions problem between whatever userid you're running
Tomcat with and the above location?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
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


[Axis2] FileNotFoundException (SESSIONS.ser) during tomcat shutdown

Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
Some more details. I don't know whether this is a Tomcat or Axis2  
issue, but the problem seems to be that the axis2 directory does not  
exist under $CATALINA_HOME/work/Catalina/localhost.


Michele

Begin forwarded message:

> From: Michele Mazzucco <Mi...@ncl.ac.uk>
> Date: 12 December 2007 10:14:57 GMT
> To: users@tomcat.apache.org
> Subject: FileNotFoundException (SESSIONS.ser)
> Reply-To: "Tomcat Users List" <us...@tomcat.apache.org>
>
> Hi all,
>
> I'm running Axis2 1.3 inside Tomcat 6.0.13 (my machine is a Linux box)
> and I get the following problem ($CATALINA_HOME is set
> to /home/nmm42/devel/tomcat/apache-tomcat-6.0.13)
>
>
> ~/devel/tomcat/apache-tomcat-6.0.13/bin> ./shutdown.sh
> Using CATALINA_BASE:   /home/nmm42/devel/tomcat/apache-tomcat-6.0.13
> Using CATALINA_HOME:   /home/nmm42/devel/tomcat/apache-tomcat-6.0.13
> Using
> CATALINA_TMPDIR: /home/nmm42/devel/tomcat/apache-tomcat-6.0.13/temp
> Using JRE_HOME:       /usr/java/jdk1.6.0_03
> nmm42@eskdale:~/devel/tomcat/apache-tomcat-6.0.13/bin>
> cat ../logs/catalina.out
> 12-Dec-2007 09:55:05 org.apache.catalina.core.AprLifecycleListener  
> init
> INFO: The Apache Tomcat Native library which allows optimal  
> performance
> in production environments was not found on the
> java.library.path: /usr/java/jdk1.6.0_03/jre/lib/i386/client:/usr/ 
> java/jdk1.6.0_03/jre/lib/i386:/usr/java/jdk1.6.0_03/jre/../lib/ 
> i386:/usr/java/packages/lib/i386:/lib:/usr/lib
> 12-Dec-2007 09:55:05 org.apache.coyote.http11.Http11NioProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> 12-Dec-2007 09:55:05 org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 863 ms
> 12-Dec-2007 09:55:05 org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> 12-Dec-2007 09:55:05 org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
> 12-Dec-2007 09:55:05 org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive axis2.war
> [INFO] Deploying module: ping-SNAPSHOT -
> file:/home/nmm42/devel/tomcat/apache-tomcat-6.0.13/webapps/axis2/ 
> WEB-INF/modules/ping-SNAPSHOT.mar
> [INFO] Deploying module: soapmonitor-SNAPSHOT -
> file:/home/nmm42/devel/tomcat/apache-tomcat-6.0.13/webapps/axis2/ 
> WEB-INF/modules/soapmonitor-SNAPSHOT.mar
> [INFO] Deploying module: metadataExchange-SNAPSHOT -
> file:/home/nmm42/devel/tomcat/apache-tomcat-6.0.13/webapps/axis2/ 
> WEB-INF/modules/mex-SNAPSHOT.mar
> [INFO] Deploying module: addressing-SNAPSHOT -
> file:/home/nmm42/devel/tomcat/apache-tomcat-6.0.13/webapps/axis2/ 
> WEB-INF/modules/addressing-SNAPSHOT.mar
> [INFO] Deploying module: script-SNAPSHOT -
> file:/home/nmm42/devel/tomcat/apache-tomcat-6.0.13/webapps/axis2/ 
> WEB-INF/modules/axis2-scripting-SNAPSHOT.mar
> [INFO] script module activated
> [INFO] Deploying Web service: version-SNAPSHOT.aar -
> file:/home/nmm42/devel/tomcat/apache-tomcat-6.0.13/webapps/axis2/ 
> WEB-INF/services/version-SNAPSHOT.aar
> 12-Dec-2007 09:55:08 org.apache.coyote.http11.Http11NioProtocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> 12-Dec-2007 09:55:08 org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> 12-Dec-2007 09:55:08 org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/31  config=null
> 12-Dec-2007 09:55:08 org.apache.catalina.startup.Catalina start
> INFO: Server startup in 2694 ms
> 12-Dec-2007 09:58:57 org.apache.coyote.http11.Http11NioProtocol pause
> INFO: Pausing Coyote HTTP/1.1 on http-8080
> 12-Dec-2007 09:58:58 org.apache.catalina.core.StandardService stop
> INFO: Stopping service Catalina
> 12-Dec-2007 09:58:59 org.apache.catalina.session.StandardManager
> doUnload
> SEVERE: IOException while saving persisted sessions:
> java.io.FileNotFoundException: /home/nmm42/devel/tomcat/apache- 
> tomcat-6.0.13/work/Catalina/localhost/axis2/SESSIONS.ser (No such  
> file or directory)
> java.io.FileNotFoundException: /home/nmm42/devel/tomcat/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:489)
>         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 
> (LifecycleSupport.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)
> 12-Dec-2007 09:58:59 org.apache.catalina.session.StandardManager stop
> SEVERE: Exception unloading sessions to persistent storage
> java.io.FileNotFoundException: /home/nmm42/devel/tomcat/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:489)
>         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 
> (LifecycleSupport.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)
> 12-Dec-2007 09:58:59 org.apache.coyote.http11.Http11NioProtocol  
> destroy
> INFO: Stopping Coyote HTTP/1.1 on http-8080
>
>
> The tomcat configuration is the default one (apart from the NIO
> connector).
> Any idea?
>
>
> Thanks,
> Michele
>
>
>
>
>
>
> ---------------------------------------------------------------------
> 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
>


---------------------------------------------------------------------
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


[Axis2] FileNotFoundException (SESSIONS.ser) during tomcat shutdown

Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
Some more details. I don't know whether this is a Tomcat or Axis2  
issue, but the problem seems to be that the axis2 directory does not  
exist under $CATALINA_HOME/work/Catalina/localhost.


Michele

Begin forwarded message:

> From: Michele Mazzucco <Mi...@ncl.ac.uk>
> Date: 12 December 2007 10:14:57 GMT
> To: users@tomcat.apache.org
> Subject: FileNotFoundException (SESSIONS.ser)
> Reply-To: "Tomcat Users List" <us...@tomcat.apache.org>
>
> Hi all,
>
> I'm running Axis2 1.3 inside Tomcat 6.0.13 (my machine is a Linux box)
> and I get the following problem ($CATALINA_HOME is set
> to /home/nmm42/devel/tomcat/apache-tomcat-6.0.13)
>
>
> ~/devel/tomcat/apache-tomcat-6.0.13/bin> ./shutdown.sh
> Using CATALINA_BASE:   /home/nmm42/devel/tomcat/apache-tomcat-6.0.13
> Using CATALINA_HOME:   /home/nmm42/devel/tomcat/apache-tomcat-6.0.13
> Using
> CATALINA_TMPDIR: /home/nmm42/devel/tomcat/apache-tomcat-6.0.13/temp
> Using JRE_HOME:       /usr/java/jdk1.6.0_03
> nmm42@eskdale:~/devel/tomcat/apache-tomcat-6.0.13/bin>
> cat ../logs/catalina.out
> 12-Dec-2007 09:55:05 org.apache.catalina.core.AprLifecycleListener  
> init
> INFO: The Apache Tomcat Native library which allows optimal  
> performance
> in production environments was not found on the
> java.library.path: /usr/java/jdk1.6.0_03/jre/lib/i386/client:/usr/ 
> java/jdk1.6.0_03/jre/lib/i386:/usr/java/jdk1.6.0_03/jre/../lib/ 
> i386:/usr/java/packages/lib/i386:/lib:/usr/lib
> 12-Dec-2007 09:55:05 org.apache.coyote.http11.Http11NioProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> 12-Dec-2007 09:55:05 org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 863 ms
> 12-Dec-2007 09:55:05 org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> 12-Dec-2007 09:55:05 org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
> 12-Dec-2007 09:55:05 org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive axis2.war
> [INFO] Deploying module: ping-SNAPSHOT -
> file:/home/nmm42/devel/tomcat/apache-tomcat-6.0.13/webapps/axis2/ 
> WEB-INF/modules/ping-SNAPSHOT.mar
> [INFO] Deploying module: soapmonitor-SNAPSHOT -
> file:/home/nmm42/devel/tomcat/apache-tomcat-6.0.13/webapps/axis2/ 
> WEB-INF/modules/soapmonitor-SNAPSHOT.mar
> [INFO] Deploying module: metadataExchange-SNAPSHOT -
> file:/home/nmm42/devel/tomcat/apache-tomcat-6.0.13/webapps/axis2/ 
> WEB-INF/modules/mex-SNAPSHOT.mar
> [INFO] Deploying module: addressing-SNAPSHOT -
> file:/home/nmm42/devel/tomcat/apache-tomcat-6.0.13/webapps/axis2/ 
> WEB-INF/modules/addressing-SNAPSHOT.mar
> [INFO] Deploying module: script-SNAPSHOT -
> file:/home/nmm42/devel/tomcat/apache-tomcat-6.0.13/webapps/axis2/ 
> WEB-INF/modules/axis2-scripting-SNAPSHOT.mar
> [INFO] script module activated
> [INFO] Deploying Web service: version-SNAPSHOT.aar -
> file:/home/nmm42/devel/tomcat/apache-tomcat-6.0.13/webapps/axis2/ 
> WEB-INF/services/version-SNAPSHOT.aar
> 12-Dec-2007 09:55:08 org.apache.coyote.http11.Http11NioProtocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> 12-Dec-2007 09:55:08 org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> 12-Dec-2007 09:55:08 org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/31  config=null
> 12-Dec-2007 09:55:08 org.apache.catalina.startup.Catalina start
> INFO: Server startup in 2694 ms
> 12-Dec-2007 09:58:57 org.apache.coyote.http11.Http11NioProtocol pause
> INFO: Pausing Coyote HTTP/1.1 on http-8080
> 12-Dec-2007 09:58:58 org.apache.catalina.core.StandardService stop
> INFO: Stopping service Catalina
> 12-Dec-2007 09:58:59 org.apache.catalina.session.StandardManager
> doUnload
> SEVERE: IOException while saving persisted sessions:
> java.io.FileNotFoundException: /home/nmm42/devel/tomcat/apache- 
> tomcat-6.0.13/work/Catalina/localhost/axis2/SESSIONS.ser (No such  
> file or directory)
> java.io.FileNotFoundException: /home/nmm42/devel/tomcat/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:489)
>         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 
> (LifecycleSupport.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)
> 12-Dec-2007 09:58:59 org.apache.catalina.session.StandardManager stop
> SEVERE: Exception unloading sessions to persistent storage
> java.io.FileNotFoundException: /home/nmm42/devel/tomcat/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:489)
>         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 
> (LifecycleSupport.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)
> 12-Dec-2007 09:58:59 org.apache.coyote.http11.Http11NioProtocol  
> destroy
> INFO: Stopping Coyote HTTP/1.1 on http-8080
>
>
> The tomcat configuration is the default one (apart from the NIO
> connector).
> Any idea?
>
>
> Thanks,
> Michele
>
>
>
>
>
>
> ---------------------------------------------------------------------
> 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
>


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