I implemented the sample Blobstore application provided in the documentation
(two servlets, Upload.java and Serve.java -- Upload.java redirects to
Serve.java which looks up the blob and renders it using
blobstoreService.serve) but I'm not able to reproduce your error. I can see
that, on the development server, the uploaded file is indeed stored in
WEB-INF/appengine-generated, but there aren't any exceptions when trying to
read this file regardless of whether the development server is still
running.

Out of curiosity, what platform are you running (Windows, Mac OS X, or
Linux) and what are the permissions of the newly added file? This is what I
see: -rw-r--r-- If your case is similar, you shouldn't have any issue
reading the file from disk, but you should also verify the permissions of
your war and WEB-INF directories.

- Jason

On Tue, Jan 12, 2010 at 9:21 AM, George Moschovitis <
[email protected]> wrote:

> When testing my app with the DevServer I face the following problem:
>
> If I add a new file in the war/ directory *after* the application has
> started the application cannot access it:
>
> java.security.AccessControlException: access denied
> (java.io.FilePermission WEB-INF/src/path/to/newfile.ext read)
>
> I am wondering if this is the standard behaviour or something is wrong
> with my app. The real problem is when I am trying to test the
> blobstore api. The DevServer places the uploaded files in the WEB-INF
> directory and I get AccessControlExceptions when trying to serve the
> files back.
>
> regards,
> -g.
>
> --
> 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]<google-appengine-java%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>
>
>
--
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