【问题标题】:Google Cloud appcfg.cmd can't deploy because can't find appengine-web.xmlGoogle Cloud appcfg.cmd 无法部署,因为找不到 appengine-web.xml
【发布时间】:2014-06-11 19:00:01
【问题描述】:

我只是想按照https://console.developers.google.com/start/appengine 上的说明构建和部署基本的 hello world 项目。我完成了所有步骤,但最后一个步骤 6 出现此错误:

D:\google-app-engine\appengine-try-java>appcfg.cmd -A aqueous-flames-561 update
target\appengine-try-java
Reading application configuration data...
Apr 24, 2014 4:27:39 PM com.google.apphosting.utils.config.AppEngineWebXmlReader
readAppEngineWebXml
SEVERE: Received exception processing target/appengine-try-java\WEB-INF/appengin
e-web.xml
com.google.apphosting.utils.config.AppEngineConfigException: Could not locate D:
\google-app-engine\appengine-try-java\target\appengine-try-java\WEB-INF\appengin
e-web.xml
        at com.google.apphosting.utils.config.AppEngineWebXmlReader.getInputStre
am(AppEngineWebXmlReader.java:140)
        at com.google.apphosting.utils.config.AppEngineWebXmlReader.readAppEngin
eWebXml(AppEngineWebXmlReader.java:75)
        at com.google.appengine.tools.admin.Application.<init>(Application.java:
185)
        at com.google.appengine.tools.admin.Application.readApplication(Applicat
ion.java:322)
        at com.google.appengine.tools.admin.AppCfg.readWar(AppCfg.java:280)
        at com.google.appengine.tools.admin.AppCfg.readApplication(AppCfg.java:2
71)
        at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:209)
        at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:121)
        at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:117)
Caused by: java.io.FileNotFoundException: target\appengine-try-java\WEB-INF\appe
ngine-web.xml (The system cannot find the file specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(Unknown Source)
        at java.io.FileInputStream.<init>(Unknown Source)
        at com.google.apphosting.utils.config.AppEngineWebXmlReader.getInputStre
am(AppEngineWebXmlReader.java:137)
        ... 8 more

Bad configuration: Could not locate D:\google-app-engine\appengine-try-java\targ
et\appengine-try-java\WEB-INF\appengine-web.xml
  Caused by: target\appengine-try-java\WEB-INF\appengine-web.xml (The system can
not find the file specified)
Please see the logs [C:\Users\MICHAE~1\AppData\Local\Temp\appcfg7867248686279117
668.log] for further information.

D:\google-app-engine\appengine-try-java>

我能够成功完成第 5 步,在本地运行您的应用程序 (https://console.developers.google.com/start/appengine)。因此,如果我确实缺少 appengine-web.xml 文件,我不确定如何在本地运行。

【问题讨论】:

标签: java google-app-engine google-cloud-platform gcloud


【解决方案1】:

Google Cloud Platform Support 的 Jordan Fish 说,https://console.developers.google.com/start/appengine 的第 6 步包含一个错误,他说会在某个时候修复。正确的命令如下(注意结尾有-1.0):

appcfg.cmd -A aqueous-flames-561 update target\appengine-try-java-1.0

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-07-11
    • 2021-01-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-09
    相关资源
    最近更新 更多