This is a known problem with the dev_appserver that we're working on. (Classes loaded by custom classloaders aren't granted the appropriate permissions). Unfortunately, there's not a workaround for this, and you'll need to test against our production servers.
On Fri, Aug 21, 2009 at 9:31 AM, tetsujin1979 <tetsujin1...@gmail.com>wrote: > > Thank you, I double checked the web.xml and the xquery scripts are > being passed to the KawaPageServlet class: > <servlet> > <servlet-name>KawaPageServlet</servlet-name> > <servlet-class>gnu.kawa.servlet.KawaPageServlet</servlet-class> > </servlet> > > <servlet-mapping> > <servlet-name>KawaPageServlet</servlet-name> > <url-pattern>*.xquery</url-pattern> > </servlet-mapping> > > I've added the scripts to the appengine-web.xml file with the > following: > <static-files> > <exclude path="/**.xquery" /> > </static-files> > now, it appears that the scripts are being passed correctly, but I'm > getting the following permission exception: > > java.lang.ExceptionInInitializerError > at sun.misc.Unsafe.ensureClassInitialized(Native Method) > at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Unknown > Source) > at sun.reflect.ReflectionFactory.newFieldAccessor(Unknown Source) > at java.lang.reflect.Field.acquireFieldAccessor(Unknown Source) > at java.lang.reflect.Field.getFieldAccessor(Unknown Source) > at java.lang.reflect.Field.get(Unknown Source) > at gnu.expr.ModuleContext.makeInstance(ModuleContext.java:60) > at gnu.expr.ModuleContext.findInstance(ModuleContext.java:83) > at gnu.kawa.servlet.KawaPageServlet.getModule(KawaPageServlet.java: > 206) > at gnu.kawa.servlet.KawaPageServlet.run(KawaPageServlet.java:46) > at gnu.kawa.servlet.KawaServlet.doGet(KawaServlet.java:68) > <snip> > Caused by: internal error > at gnu.expr.Compilation.setupLiterals(Compilation.java:2802) > at temp.(temp.xquery) > ... 36 more > Caused by: java.security.AccessControlException: access denied > (java.lang.RuntimePermission accessDeclaredMembers) > at java.security.AccessControlContext.checkPermission(Unknown > Source) > at java.security.AccessController.checkPermission(Unknown Source) > at java.lang.SecurityManager.checkPermission(Unknown Source) > at com.google.appengine.tools.development.DevAppServerFactory > $CustomSecurityManager.checkPermission(DevAppServerFactory.java:128) > > is it possible to grant the accessDeclaredMembers permission? > > On Aug 20, 5:15 pm, Toby Reyelts <to...@google.com> wrote: > > Can you double check your servlet mappings and make sure they are > correct? > > Also, you'll need to modify your appengine-web.xml to exclude your > scripts > > from <static-files> so they aren't served by default by our optimized > static > > content servers. See our docs on static and resource > > files< > http://code.google.com/appengine/docs/java/config/appconfig.html#Stat...> > > . > > On Wed, Aug 19, 2009 at 6:55 AM, tetsujin1979 <tetsujin1...@gmail.com > >wrote: > > > > > > > > > sorry, I should have added that I've checked for this on the "Will it > > > run on GAE" page, and it's not listed > > > > > On Aug 19, 11:54 am, tetsujin1979 <tetsujin1...@gmail.com> wrote: > > > > Hi, I have a Kawa -http://www.gnu.org/software/kawa/-based servlet > > > > that uses XQuery to query some xml documents to produce an output, > > > > using the instructions here - > > >http://www.gnu.org/software/qexo/simple-xquery-webapp.html > > > > > > This runs fine on tomcat, but when I've tried to run the same web app > > > > on the GAE, any request just returns the raw xquery page, with no > > > > processing done. > > > > > > According to this page - > > >http://www.gnu.org/software/kawa/server/auto-servlet.html > > > > - "KawaPageServlet automatically compiles a script into a Java class. > > > > The class is internal to the server, and is not written out to disk" > > > > so could it be that the class is not getting compiled? > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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-java@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 -~----------~----~----~----~------~----~------~--~---