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.