gpt4 book ai didi

maven - 在 App Engine Standard 上部署时无法生成 quickstart.xml

转载 作者:太空宇宙 更新时间:2023-11-03 15:20:32 25 4
gpt4 key购买 nike

自过去 3 天以来,我一直在尝试解决这个问题,并且可能尝试了 SO 和 Git 论坛上的所有解决方案。

在谷歌应用引擎中,该应用程序在本地服务器上完美运行,但在部署时,显示以下错误。

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.

在日志中,

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:甲骨文 8。请帮我找到问题并在 App Engine 上部署项目。我以前部署过相同的项目。

最佳答案

您使用的是 GCloud SDK 版本 187.0.0 吗?

我在使用此版本的 SDK 时遇到了同样的问题,甚至在从 https://cloud.google.com/appengine/docs/standard/java/quickstart 运行教程项目时遇到了同样的错误。

我卸载了 SDK 并安装了之前的版本 (186.0.0),现在一切正常。也许它也可以为您解决问题。

旧版本可在此处下载:

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

关于maven - 在 App Engine Standard 上部署时无法生成 quickstart.xml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48565534/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com