I have a web app deployed to Tomcat 5.5 with a class that needs to read some parameters from an xml file. I’m using JDOM to parse the xml. The only way I can actually read the file is if I place it in the bin directory along with the Tomcat.exe and simply refer to the file by its name (“params.xml”). I know that’s a ridiculous location for it, but everywhere else I place it I get a “File not found” error.
Where should I place this xml file in the directory structure of a bread and butter web app, and how should I refer to that location in my code when I’m reading its parameters in?