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
after few seconds JBoss remove this file (user.xml). I try with java.security.manager and server.policy but it does not work.
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.