You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Chris Markle <cm...@comcast.net> on 2010/07/30 08:37:41 UTC

help with exception: "IOException while saving persisted sessions: java.io.FileNotFoundException: C:\Documents and Settings\...\SESSIONS.ser (The system cannot find the path specified)"

Running Tomcat 7.0.0 under Eclipse on Windows XP SP3. When I save a
change to my app and Tomcat reloads whatever it reloads, I get the
following exception. I did some web searching but to no avail.

The directory C:\Documents and
Settings\Dad\Desktop\dev\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\_\
exists but there is no SESSIONS.ser file in it.

Happy to try to debug this with someone that might be able to guide
me... Thanks in advance.

Chris

* * * exception * * *

INFO: Reloading Context with path [/] has started
Jul 29, 2010 11:28:42 PM org.apache.catalina.session.StandardManager doUnload
SEVERE: IOException while saving persisted sessions:
java.io.FileNotFoundException: C:\Documents and
Settings\Dad\Desktop\dev\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\_\SESSIONS.ser
(The system cannot find the path specified)
java.io.FileNotFoundException: C:\Documents and
Settings\Dad\Desktop\dev\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\_\SESSIONS.ser
(The system cannot find the path specified)
	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:491)
	at org.apache.catalina.session.StandardManager.unload(StandardManager.java:465)
	at org.apache.catalina.session.StandardManager.stopInternal(StandardManager.java:608)
	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:214)
	at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:4920)
	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:214)
	at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3487)
	at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:413)
	at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1158)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1340)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1349)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1349)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1329)
	at java.lang.Thread.run(Thread.java:619)
Jul 29, 2010 11:28:42 PM org.apache.catalina.session.StandardManager
stopInternal
SEVERE: Exception unloading sessions to persistent storage
java.io.FileNotFoundException: C:\Documents and
Settings\Dad\Desktop\dev\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\_\SESSIONS.ser
(The system cannot find the path specified)
	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:491)
	at org.apache.catalina.session.StandardManager.unload(StandardManager.java:465)
	at org.apache.catalina.session.StandardManager.stopInternal(StandardManager.java:608)
	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:214)
	at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:4920)
	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:214)
	at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3487)
	at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:413)
	at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1158)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1340)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1349)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1349)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1329)
	at java.lang.Thread.run(Thread.java:619)

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


Re: help with exception: "IOException while saving persisted sessions: java.io.FileNotFoundException: C:\Documents and Settings\...\SESSIONS.ser (The system cannot find the path specified)"

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris,

On 7/30/2010 2:37 AM, Chris Markle wrote:
> Running Tomcat 7.0.0 under Eclipse on Windows XP SP3. When I save a
> change to my app and Tomcat reloads whatever it reloads, I get the
> following exception. I did some web searching but to no avail.
> 
> The directory C:\Documents and
> Settings\Dad\Desktop\dev\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\_\
> exists but there is no SESSIONS.ser file in it.

Look at the exception: it occurs in FileOutputStream.open(), which means
that Tomcat is failing to open the file for /writing/, not for reading.

FileNotFoundException when writing to a file usually means there is a
problem with the permissions of the directory (or directories) where
that file is trying to be created.

Unfortunately, the author of the StandardManager class thought that
"unloading" would be a good word to mean "writing" when trying to save
sessions to the disk.

Check your permissions and see if anything is amiss. Be aware that the
euid of the Tomcat process might not be /yours/.

Hope that helps,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxS7UAACgkQ9CaO5/Lv0PCKVQCcC4TfRfJyvksmf2+aTGlwK/mL
4hMAoLUJZ5G3tY5nMuCSaTZSHTWjmsf5
=RBjP
-----END PGP SIGNATURE-----

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