Google Cloud appcfg.cmd无法部署,因为无法找到appengine-web.xml

时间:2014-04-25 21:54:37

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

我只是按照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文件,我不确定如何在本地运行。

1 个答案:

答案 0 :(得分:1)

Google Cloud Platform支持的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