GoogleCloudPlatform / gradle-appengine-plugin

Gradle plugin that provides tasks for uploading, running and managing Google App Engine projects
Apache License 2.0
236 stars 60 forks source link

JSP file (inside webapp folder) issue with module type App Engine Java Endpoints Module #219

Open bytekode opened 8 years ago

bytekode commented 8 years ago

IDE: Android Studio Module type: App Engine Java Endpoints Module Dependencies classpath 'com.google.appengine:gradle-appengine-plugin:1.9.18' appengineSdk 'com.google.appengine:appengine-java-sdk:1.9.18' compile 'com.google.appengine:appengine-endpoints:1.9.18' compile 'com.google.appengine:appengine-endpoints-deps:1.9.18' compile 'javax.servlet:servlet-api:2.5' compile 'com.googlecode.objectify:objectify:5.0.3'

\ When I add JSP file inside webapp folder and run ./gradlew api:appengineUpdate it gives me following error 99% Will check again in 32 seconds. 99% Endpoints configuration not updated. The app returned an error when the Google Cloud Endpoints server attempted to communicate with it.

In the appengine admin logs I see this API configuration update failed API config update failed, retry: fatal Completed update of a new default version Deployed a new version

\ And when I remove JSP file and run ./gradlew api:appengineUpdate it works. Following message is displayed 99% Closing update: new version is ready to start serving. 99% Uploading index definitions. Update for module default completed successfully. Success. Cleaning up temporary files for module default... BUILD SUCCESSFUL

My web.xml

<?xml version="1.0" encoding="utf-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
    <filter>
        <filter-name>ObjectifyFilter</filter-name>
        <filter-class>com.googlecode.objectify.ObjectifyFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>ObjectifyFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    <servlet>
        <servlet-name>SystemServiceServlet</servlet-name>
        <servlet-class>com.google.api.server.spi.SystemServiceServlet</servlet-class>
        <init-param>
            <param-name>services</param-name>
            <param-value>
                com.packagename.api.SomeEndpoint
            </param-value>
        </init-param>
    </servlet>
    <servlet-mapping>
        <servlet-name>SystemServiceServlet</servlet-name>
        <url-pattern>/_ah/spi/*</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
    </welcome-file-list>
</web-app>

Tried adding JSP file entry under but no luck!

Let me know if any thing not clear.. or I am doing any thing wrong :)

loosebazooka commented 8 years ago

maybe you're adding a JSP that's normally a reserved path? I have no idea, do you have any more details?