I use an XML file to hold my SQL queries. As per the app engine guidelines here: http://code.google.com/appengine/kb/java.html#readfile
I have the file in my war/WEB-INF directory and load is as such:
DocumentBuilder db = dbf.newDocumentBuilder();
dom = db.parse("\\WEB-INF\\Queries.xml");
When I deploy to GAE I see this in the logs:
access denied (java.io.FilePermission /\WEB-INF\Queries.xml read)
Did I miss something?
it is taking the path as an absolute path and therefore it is saying access denied for that file.
Instead use an overload of parse(InputStream is) which takes InputStream as an argument.
try this piece of code, it should work fine.