On Thu, Mar 13, 2014 at 2:06 PM, <[email protected]> wrote:
> 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")
>
You cannot use many of the File operations on App Engine due to the
sandbox. You have to collect the contents in a different way; one way would
be to collect an InputStream by calling
this.getServletContext().getResourceAsStream("path"), then wrapping it
through org.xml.sax.InputSource, then supplying that as an argument to
XMLReader.parser().
-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL
App Engine Code Samples: http://www.learntogoogleit.com
--
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.