I am using a RandomAccessFile, which is whitelisted on Google App
Engine.

My simple code looks like:

  RandomAccessFile file = new RandomAccessFile("/WEB-INF/classes/
myfile.dat", "r");

which gets a

java.security.AccessControlException: access denied
(java.io.FilePermission \WEB-INF\classes\myfile.dat read)
        at java.security.AccessControlContext.checkPermission
(AccessControlContext.java:323)
        at java.security.AccessController.checkPermission
(AccessController.java:546)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:
532)

Same thing if I put the file in /WEB-INF directly.

Am I missing something? Thanks for your help.

--

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 google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.


Reply via email to