With Google App Engine your app can't write to the disk (by using files), it can only write to the Google data store. You can read files that were in your war, but not write anything. Perhaps Struts was trying to do some disk writing? With Stripes (a superior alternative to Struts in my opinion) you need to provide a simple workaround for this because its multipart uploader interceptor (or something, I forget now) tries to create a file or directory when your app is loaded.
[email protected] wrote: > i got the solution. it was because i turn the devMode on > > <constant name="struts.devMode" value="true" /> > > when i delete it from struts.xml, every thing work well. > > isn't it a bug for struts 2.1.8 ? > > On Nov 1, 4:29 pm, "[email protected]" <[email protected]> wrote: >> oh my god. i bulid a new web app and it runs well , does not throw >> that exception again. >> >> On Nov 1, 10:27 am, "[email protected]" <[email protected]> wrote: >> >> >> >>> now i have to use 2.1.6 in my computer and replace the lib to 2.1.8 >>> when i update to app engine server >>> On Oct 31, 10:56 pm, "[email protected]" <[email protected]> wrote: >>>> when i use struts 2.1.8 and app engine sdk 1.2.6(1.2.5 also the >>>> same) , when web app start, it throw the exception >>>> java.security.AccessControlException: access denied >>>> (java.io.FilePermission jar:file:\F:\mysrc\Guestbook\build\web\WEB-INF >>>> \lib\struts2-core-2.1.8.1.jar 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) >>>> at com.google.appengine.tools.development.DevAppServerFactory >>>> $CustomSecurityManager.checkPermission(DevAppServerFactory.java:139) >>>> at java.lang.SecurityManager.checkRead(SecurityManager.java:871) >>>> at java.util.zip.ZipFile.(ZipFile.java:109) >>>> at java.util.jar.JarFile.(JarFile.java:133) >>>> at java.util.jar.JarFile.(JarFile.java:70) .......... >>>> the exception happend in local server . but when i update my app >>>> to app engine server. it runs well . >>>> struts 2.1.6 didn't appear this, but version 2.1.8 fixed some things >>>> that make struts-convention-plugin can work on app engine and also >>>> have offical json plugin. so i have to use v 2.1.8. >>>> i have read the 'Will it play in App Engine ' ,it does not have >>>> a solution. >>>> how can make struts 2.1.8 work well on local server? thanks in >>>> advance! > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
