Caucho Forums  

This forum is permanently closed because of spam. For free community support, please visit Google Groups:


Go Back   Caucho Forums > Quercus

Reply
 
Thread Tools Display Modes
  #1  
Old 11-23-2011, 07:36 PM
MathewFrank MathewFrank is offline
Junior Member
 
Join Date: Nov 2011
Posts: 2
Question help! (newbie) can't get hello world working on GAE

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)
I am running GAE local debug mode in Eclipse Java EE IDE - Indigo SR1. I have the quercus plugin.

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>
and this is my appengine-web.xml
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>
and this is the phpinfo.php file:
PHP Code:
<?php phpinfo(); ?>
Finally this is my debug log file - up to the first failed request
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)
Reply With Quote
  #2  
Old 12-04-2011, 11:45 AM
MathewFrank MathewFrank is offline
Junior Member
 
Join Date: Nov 2011
Posts: 2
Default

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
Reply With Quote
Reply

Tags
gae, google app engine

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:28 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.