i solve this proplem by setting struts.devMode to false in struts.xml for example
<constant name="struts.devMode" value="false" /> ..... my program runs ok. On Nov 3, 4:49 am, Rusty Wright <rwright.li...@gmail.com> wrote: > 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. PerhapsStrutswas trying to do some disk > writing? With Stripes (a superior alternative toStrutsin 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. > > > > zhiw...@gmail.com wrote: > > i got the solution. it was because i turn the devMode on > > > <constant name="struts.devMode" value="true" /> > > > when i delete it fromstruts.xml, every thing work well. > > > isn't it a bug forstruts2.1.8 ? > > > On Nov 1, 4:29 pm, "zhiw...@gmail.com" <zhiw...@gmail.com> 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, "zhiw...@gmail.com" <zhiw...@gmail.com> 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, "zhiw...@gmail.com" <zhiw...@gmail.com> wrote: > >>>> when i usestruts2.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 . > >>>>struts2.1.6 didn't appear this, but version 2.1.8 fixed some things > >>>> that makestruts-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 makestruts2.1.8 work well on local server? thanks in > >>>> advance!- Hide quoted text - > > - Show quoted text - -- 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=.