Hey all,
I'm relatively new with GAE but I'm having some problems with running a
parser on a local xml file. I loaded the xml file in a the WEB-INF file and
even changed the app-engine-web.xml file to make all xml files resource
files. It works fine in development mode but on my deployed version it
keeps throwing: java.security.AccessControlException: access denied
("java.io.FilePermission" "WEB-INF/MapInfo.xml" "write")
try {
File info = new File("WAR-INF/MapInfo.xml");
info.setReadable(true);
info.setWritable(true, false);
XMLParser parser = new XMLParser(Coordinates, 8);
XMLReader reader = XMLReaderFactory.createXMLReader();
reader.setContentHandler(parser);
reader.parse("WAR-INF/MapInfo.xml");
Coordinates = parser.getData();
total = parser.getACC();
} catch (SAXException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
Any solutions to this?
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.