Magnum669 / 20thingsilearned

Automatically exported from code.google.com/p/20thingsilearned
0 stars 0 forks source link

Deploy to Google app engine #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Can run the sample just great in local environment but the second i push to the 
app engine i receive this error:

com.caucho.quercus.servlet.GoogleQuercusServletImpl service: 
com.caucho.quercus.QuercusException: 
com.googlecode.objectify.ObjectifyService.register: null

this is the web xml so not sure what i am missing:

<?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_4.xsd"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_4.xsd"
    version="2.4">

    <mime-mapping>
        <extension>manifest</extension>
        <mime-type>text/cache-manifest</mime-type>
    </mime-mapping>

    <mime-mapping>
        <extension>ttf</extension>
        <mime-type>font/ttf</mime-type>
    </mime-mapping>

    <filter>
        <filter-name>UrlRewriteFilter</filter-name>
        <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
    </filter>

    <filter-mapping>
        <filter-name>UrlRewriteFilter</filter-name>
        <url-pattern>/*</url-pattern>
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>FORWARD</dispatcher>
    </filter-mapping>

    <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>

    <servlet>
        <servlet-name>remote-api</servlet-name>
        <servlet-class>com.google.apphosting.utils.remoteapi.RemoteApiServlet</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>remote-api</servlet-name>
        <url-pattern>/remote_api</url-pattern>
    </servlet-mapping>

    <security-constraint>

        <web-resource-name>remote-api</web-resource-name>
        <web-resource-collection>
            <url-pattern>/remote_api</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>admin</role-name>
        </auth-constraint>

    </security-constraint>

    <welcome-file-list>
        <welcome-file>index.php</welcome-file>
    </welcome-file-list>
</web-app>

Any and all help is greatly appreciated and this is just a great app!

Original issue reported on code.google.com by jus...@nuiority.com on 25 Apr 2012 at 9:38

GoogleCodeExporter commented 8 years ago
you should clean & change JDK in Java Compiler to 1.6

now I have other exception 

com.caucho.quercus.QuercusException: 
com.googlecode.objectify.ObjectifyService.register: Attempted to register kind 
'Locale' twice

Original comment by than...@gmail.com on 5 Jul 2012 at 8:15

GoogleCodeExporter commented 8 years ago
Did you find a solution for this register Locale twice issue?  I am running 
into the same issue now.  

Original comment by j...@fugoo.com on 7 Jan 2013 at 11:16