Use a relative path, not an absolute path. So remove the forward slash
prefix, to just FileInputStream("test.xml"). So a file located in /
projectfolder/war/data/anothertest.xml would be accessed using
FileInputStream("data/anothertest.xml").

Andy


On Dec 8, 10:49 pm, mattkrae34 <[email protected]> wrote:
> I'm using 1.2.8 SDK and on both local and the app engine I get the
> following exception:
>
> java.security.AccessControlException: access denied
> (java.io.FilePermission file.xml read)
>
> When I ever I try to open a FileInputStream
>
> XMLEventReader r = factory.createXMLEventReader(new FileInputStream("/
> test.xml"));
>
> My appengine-web.xml contains the following:
>
>         <static-files>
>         <include path="/**.xml" />
>     </static-files>
>
>         <resource-files>
>         <include path="/**.xml" />
>     </resource-files>
>
> The file is located in the WEB-INF directory.

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.


Reply via email to