[ https://issues.apache.org/jira/browse/AXIS2-3052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534002 ]
antreas zapantis commented on AXIS2-3052: ----------------------------------------- The exception that Charitha managed to generate isn't the same as the exception initially described, and possibly warrants a separate bug report. The reason that the bug wasn't successfully reproduced is the issue doesn't appear in Tomcat 5.5.2, which is by now quite old. I can successfully reproduce this bug by un-deploying Axis2 version 1.3 on Tomcat versions 5.5.25, 5.5.23, and 6.0.13 on Linux, specifically Ubuntu Feisty. The bug doesn't affect Axis2 version 1.2. Since it occurs on un-deployment, it also happens every time tomcat is shut down or restarted. The following steps assume that the environment variable JAVA_HOME has been set. Steps to reproduce: $ tar xzf apache-tomcat-<version>.tar.gz $ bash apache-tomcat-<version>/bin/startup.sh $ cp axis2.war apache-tomcat-<version>/webapps now, wait until axis2 is deployed. Undeploying axis2 by either deleting axis2.war: $ rm axis2.war OR stopping tomcat: $ bash apache-tomcat-<version>/bin/shutdown.sh generates the following exception in apache-tomcat-<version>/logs/catalina.out: INFO: Undeploying context [/axis2] [ERROR] IOException while saving persisted sessions: java.io.FileNotFoundException: /home/basil/download/apache-tomcat-5.5.25/work/Catalina/localhost/axis2/SESSIONS.ser (No such file or directory) java.io.FileNotFoundException: /home/basil/download/apache-tomcat-5.5.25/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:4360) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:893) at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1035) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1306) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559) at java.lang.Thread.run(Thread.java:595) [ERROR] Exception unloading sessions to persistent storage java.io.FileNotFoundException: /home/basil/download/apache-tomcat-5.5.25/work/Catalina/localhost/axis2/SESSIONS.ser (No such file or directo ry) 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:4360) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:893) at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1035) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1306) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559) at java.lang.Thread.run(Thread.java:595) > webapp reload on Tomcat 5.5 fails when persisting sessions > ---------------------------------------------------------- > > Key: AXIS2-3052 > URL: https://issues.apache.org/jira/browse/AXIS2-3052 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Affects Versions: 1.3 > Environment: Tomcat 5.5.20 > Axis 1.3-RC2 > Reporter: simishag > Assignee: Deepal Jayasinghe > Priority: Minor > Attachments: tomcat552.JPG > > > Reloading the webapp from the Tomcat Manager causes the following exception: > org.apache.catalina.session.ManagerBase - IOException while saving persisted > sessions: > java.io.FileNotFoundException: > /var/lib/tomcat-5.5/work/Catalina/localhost/axis2/SESSIONS.ser (No such file > or directory) > I verified that the directory exists and is writable by the Tomcat user. I > tried creating the SESSIONS.ser file in advance, setting permissions then > reloading. Same exception happens, and the file actually gets removed. > I have only seen this problem since I started using 1.3-RC2. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]