This content has been marked as final.
Show 3 replies
-
1. Re: JBoss 5.1 and tmp folder
peterj Apr 5, 2012 10:38 AM (in response to bauerpl)Try deploying as an exploded app: https://community.jboss.org/wiki/ExplodedDeployment
Then, the XML file will be created at server/xxx/deploy/yourapp.war/WEB-INF/xxx.xml and will survive a restart.
-
2. Re: JBoss 5.1 and tmp folder
bauerpl Apr 5, 2012 8:01 PM (in response to peterj)Yes i have like this but when i create file
File file = new File(getSession().getServletContext().getRealPath("/WEB-INF/user.xml"));
file is create in
/home/java/jboss-5.1.0.GA/server/default/tmp/3j011-2g323u-gzskzxr2-1-gzsl0v6g-9o/ProjectName/WEB-INF/user.xml
after few seconds JBoss remove this file (user.xml). I try with java.security.manager and server.policy but it does not work.
Best regards
Lukas
-
3. Re: JBoss 5.1 and tmp folder
peterj Apr 9, 2012 2:33 PM (in response to bauerpl)I just now tried it on one of my web apps, deployed it as exploded, and included the File creating line you posted. The I printed out file.getAbsolutePath and got this:
file loc : D:\opt\jbia\work\jboss-5.1.0.GA\server\servlet\deploy\servlet.war\WEB-INF\user.xml
Please describe exactly how you did the exploded deployment.