[
http://jira.jboss.com/jira/browse/JBAS-3358?page=comments#action_12339659 ]
Javid Jamae commented on JBAS-3358:
-----------------------------------
I was able to produce this on several machines with 4.0.4GA. Vicky Kak (from JBoss
support) was able to produce it as well. The following is the output after I do a Ctrl-C
in the console window:
20:38:15,281 INFO [Server] Runtime shutdown hook called, forceHalt: true
20:38:15,281 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
20:38:15,281 INFO [TomcatDeployer] undeploy, ctxPath=/simple,
warUrl=.../deploy/simple.war/
As you can see, the application is undeployed and in turn the work directory is deleted.
My Web application is called "simple" and as you can see (below) the entire work
directory for my app is deleted on shutdown.
Before shutdown:
/cygdrive/c/jboss-4.0.4.GA-ejb3/server/default/work/jboss.web/localhost
$ ls -la
total 0
drwx------+ 6 Javid Jamae None 0 Jul 11 21:36 .
drwx------+ 3 Javid Jamae None 0 Jul 11 15:05 ..
drwx------+ 2 Javid Jamae None 0 Jul 11 20:29 _
drwx------+ 2 Javid Jamae None 0 Jul 11 20:29 jbossws
drwx------+ 2 Javid Jamae None 0 Jul 11 20:37 jmx-console
drwx------+ 2 Javid Jamae None 0 Jul 11 21:36 simple
After shutdown:
/cygdrive/c/jboss-4.0.4.GA-ejb3/server/default/work/jboss.web/localhst
$ ls -la
total 0
drwx------+ 5 Javid Jamae None 0 Jul 11 20:38 .
drwx------+ 3 Javid Jamae None 0 Jul 11 15:05 ..
drwx------+ 2 Javid Jamae None 0 Jul 11 20:29 _
drwx------+ 2 Javid Jamae None 0 Jul 11 20:29 jbossws
drwx------+ 2 Javid Jamae None 0 Jul 11 20:37 jmx-console
Work directory shouldn't be deleted
-----------------------------------
Key: JBAS-3358
URL:
http://jira.jboss.com/jira/browse/JBAS-3358
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: JBossAS-4.0.4.GA
Reporter: Javid Jamae
I tried enabling HTTP session persistence, but found out that the default directory that
it writes to is the work directory. Working with JBoss support, I discovered that the work
directory is deleted when the server shuts down.
Either the work directory should not be deleted, or the default directory where the
persistent HTTP sessions are serialized to a file should be changed to be in a directory
other than work (since it is being deleted).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira