help with exception: IOException while saving persisted sessions: java.io.FileNotFoundException: C:Documents and Settings...SESS

by Chris Markleon 2010-07-30T06:37:41+00:00
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
SettingsDadDesktopdev.metadata.pluginsorg.eclipse.wst.server.coretmp0workCatalinalocalhost-
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
SettingsDadDesktopdev.metadata.pluginsorg.eclipse.wst.server.coretmp0workCatalinalocalhost-SESSIONS.ser
(The system cannot find the path specified)
java.io.FileNotFoundException: C:Documents and
SettingsDadDesktopdev.metadata.pluginsorg.eclipse.wst.server.coretmp0workCatalinalocalhost-SESSIONS.ser
(The system cannot find the path specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:179)
at java.io.FileOutputStream.(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
SettingsDadDesktopdev.metadata.pluginsorg.eclipse.wst.server.coretmp0workCatalinalocalhost-SESSIONS.ser
(The system cannot find the path specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:179)
at java.io.FileOutputStream.(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)
Chris,
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