![]() |
|
#1
|
|||
|
|||
|
Hi guys - really need a hand here. I expect this error is something basic I am getting wrong. I know only a little about java and a lot about PHP.
I have a large project - a game server - I want to run on this but stumped at just getting Quercus to run in Google App Engine (local mode). I followed the wiki instructions, but there was some missing information (the config that tells Java that php files are a resource) so I got some info from the youtube video. THANKS in advance! When I call a php file I get the following in a 500 error: Code:
java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup")
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:166)
at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkAccess(DevAppServerFactory.java:191)
at java.lang.ThreadGroup.checkAccess(Unknown Source)
at java.lang.Thread.init(Unknown Source)
This is my web.xml Code:
<?xml version="1.0" encoding="utf-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> <description>PHP bridge</description> <servlet> <servlet-name>Quercus Servlet</servlet-name> <servlet-class>com.caucho.quercus.servlet.GoogleQuercusServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>Quercus Servlet</servlet-name> <url-pattern>*.php</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.php</welcome-file> </welcome-file-list> </web-app> Code:
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>NAME USED FOR uploading to GAE</application>
<version>1</version>
<!--
By default, App Engine sends requests serially to a given web server.
To allow App Engine to send multiple requests in parallel specify:
<threadsafe>true</threadsafe>
-->
<threadsafe>false</threadsafe>
<!-- Configure java.util.logging -->
<system-properties>
<property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/>
</system-properties>
<sessions-enabled>false</sessions-enabled>
<static-files>
<exclude path="/**.php" />
</static-files>
<resource-files>
<include path="/**.php" />
</resource-files>
</appengine-web-app>
PHP Code:
Code:
Nov 23, 2011 10:19:08 AM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
Nov 23, 2011 10:19:08 AM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed C:\Users\frak\workspace\Guest Book\war\WEB-INF/appengine-web.xml
Nov 23, 2011 10:19:08 AM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed C:\Users\frak\workspace\Guest Book\war\WEB-INF/web.xml
Nov 23, 2011 9:19:09 PM com.google.appengine.tools.development.DevAppServerImpl start
INFO: The server is running at http://localhost:8888/
Nov 23, 2011 7:32:00 PM com.caucho.env.shutdown.ShutdownSystem shutdownActive
WARNING: ShutdownService is not active
ShutdownService is not active
Nov 23, 2011 7:32:00 PM com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: Error for /phpinfo.php
java.lang.ExceptionInInitializerError
at com.caucho.quercus.page.PageManager.<init>(PageManager.java:59)
......
Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup")
at java.security.AccessControlContext.checkPermission(Unknown Source)
|
|
#2
|
|||
|
|||
|
There had been a bug raised for this: http://bugs.caucho.com/view.php?id=4889
It effects recent versions of Quercus. Till its fixed use version resin-4.0.22 or earlier. Mathew |
![]() |
| Tags |
| gae, google app engine |
| Thread Tools | |
| Display Modes | |
|
|