Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to generate quickstart.xml while deploying on App Engine Standard

I have been trying till my wits end since past 3 days about this issue and probably tried every solution on SO and Git forums.

In google app engine, The app runs perfectly on local server but while deploying, the following error is shown.

Reading application configuration data... ********************************* Configuration Warning : / XML elements and --application/--version should not be specified when staging

The following parameters will be scrubbed from app.yaml application : shsDemo version : 1.1

Future versions of staging will fail if application or version is specified.


Beginning interaction for module default... 0% Scanning for jsp files. 0% Compiling jsp files. Feb 01, 2018 8:10:47 PM org.apache.jasper.servlet.TldScanner scanJars INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. Feb 01, 2018 8:10:48 PM org.apache.jasper.JspC processFile INFO: Built File: /feedback.jsp

Error: Could not find or load main class com.google.appengine.tools.development.jetty9.QuickStartGenerator Error while executing: /usr/lib/jvm/java-8-oracle/jre/bin/java -cp /usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/tools/java/jetty93/jetty-distribution/lib/jetty-schemas-3.1.jar:/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/tools/java/jetty93/jetty-distribution/lib/jetty-util-9.3.18.v20170406.jar:/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/tools/java/jetty93/jetty-distribution/lib/jetty-deploy-9.3.18.v20170406.jar:/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/tools/java/jetty93/jetty-distribution/lib/jetty-http-9.3.18.v20170406.jar:/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/tools/java/jetty93/jetty-distribution/lib/jetty-proxy-9.3.18.v20170406.jar:/usr/lib/google-cloud- . . . similiar such logs . . . . Unable to stage app: Failed to generate quickstart-web.xml. Please see the logs [/tmp/appcfg5433316199131614644.log] for further information.

In logs,

Unable to stage: java.lang.RuntimeException: Failed to generate quickstart-web.xml. at com.google.appengine.tools.admin.Application.createQuickstartWebXml(Application.java:1806) at com.google.appengine.tools.admin.Application.populateStagingDirectory(Application.java:999) at com.google.appengine.tools.admin.Application.createStagingDirectory(Application.java:872) at com.google.appengine.tools.admin.AppAdminImpl.stageApplication(AppAdminImpl.java:539) at com.google.appengine.tools.admin.AppAdminImpl.stageApplicationWithDefaultResourceLimits(AppAdminImpl.java:492) at com.google.appengine.tools.admin.AppCfg$StagingAction.execute(AppCfg.java:2529) at com.google.appengine.tools.admin.AppCfg.executeAction(AppCfg.java:390) at com.google.appengine.tools.admin.AppCfg.(AppCfg.java:213) at com.google.appengine.tools.admin.AppCfg.(AppCfg.java:119) at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:115) com.google.appengine.tools.admin.AdminException: Unable to stage app: Failed to generate quickstart-web.xml. at com.google.appengine.tools.admin.AppAdminImpl.stageApplication(AppAdminImpl.java:543) at com.google.appengine.tools.admin.AppAdminImpl.stageApplicationWithDefaultResourceLimits(AppAdminImpl.java:492) at com.google.appengine.tools.admin.AppCfg$StagingAction.execute(AppCfg.java:2529) at com.google.appengine.tools.admin.AppCfg.executeAction(AppCfg.java:390) at com.google.appengine.tools.admin.AppCfg.(AppCfg.java:213) at com.google.appengine.tools.admin.AppCfg.(AppCfg.java:119) at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:115) Caused by: java.lang.RuntimeException: Failed to generate quickstart-web.xml. at com.google.appengine.tools.admin.Application.createQuickstartWebXml(Application.java:1806) at com.google.appengine.tools.admin.Application.populateStagingDirectory(Application.java:999) at com.google.appengine.tools.admin.Application.createStagingDirectory(Application.java:872) at com.google.appengine.tools.admin.AppAdminImpl.stageApplication(AppAdminImpl.java:539) ... 6 more

JDK: oracle 8. Please help me find the issue and deploy the project on App Engine. I have deployed the same project before.

like image 269
Shachi Avatar asked Feb 01 '18 14:02

Shachi


1 Answers

Are you using GCloud SDK version 187.0.0?

I had the same issue with this version of the SDK, even got the same error when running the Tutorial project from https://cloud.google.com/appengine/docs/standard/java/quickstart

I uninstalled the SDK and installed the prior version (186.0.0) and now everything is working fine again. Maybe it can solve the issue for you as well.

Old versions are available for download here:

https://console.cloud.google.com/storage/browser/cloud-sdk-release?authuser=0&prefix=google-cloud-sdk-186

like image 199
Nicklas Gnejs Eriksson Avatar answered Sep 25 '22 23:09

Nicklas Gnejs Eriksson