Got it. Thanks!

On Jan 5, 12:46 am, m seleron <[email protected]> wrote:
> Hi,
>
> Though it doesn't confirm so much.
>
> I put the file in /WEB-INF directly.
> I think if you can access this form.
> "WEB-INF/myfile.dat"
>
> Please Try
> Thanks.
>
> On 1月5日, 午後4:57, Steph <[email protected]> wrote:
>
>
>
> > 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 [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