因为找不到appengine

因为找不到appengine

本文介绍了Google Cloud appcfg.cmd无法部署,因为找不到appengine-web.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是尝试按照。我完成了所有步骤,但最后一步,第6步,我得到这个错误:

  D:\google- app-engine \appengine-try-java> appcfg.cmd -A水火焰-561更新
target\appengine-try-java
读取应用程序配置数据...
Apr 24,2014 4:27:39 PM com.google.apphosting.utils.config.AppEngineWebXmlReader
readAppEngineWebXml
SEVERE:收到异常处理目标/ appengine-try-java\WEB-INF / appengin
e-web.xml
com.google.apphosting.utils.config.AppEngineConfigException:找不到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)
,位于com.google.apphosting.utils.config.AppEngineWebXmlReader.readAppEngin
eWebXml(AppEngineWebXmlReader.java:75)
,位于com.google.ap pengine.tools.admin.Application。< init>(Application.java:
185)
at com.google.appengine.tools.admin.Application.readApplication(Applicat
ion.java :322)
,位于com.google.appengine.tools.admin.AppCfg.readWar(AppCfg.java:280)
位于com.google.appengine.tools.admin.AppCfg.readApplication(AppCfg.java :2
71)
,位于com.google.appengine.tools.admin.AppCfg。< init>(AppCfg.java:209)
,位于com.google.appengine.tools.admin .AppCfg。< init>(AppCfg.java:121)
at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:117)
引起:java.io. FileNotFoundException:target\appengine-try-java\WEB-INF\appe
ngine-web.xml(系统找不到指定的文件)
在java.io.FileInputStream.open(Native方法)在java.io.FileInputStream处为
。< init>(Unknown Source)在java.io.FileInputStream处为
。< init>(未知来源)
在com.google.apphost ing.utils.config.AppEngineWebXmlReader.getInputStre
am(AppEngineWebXmlReader.java:137)
... 8 more

错误配置:无法找到D:\google- app-engine \appengine-try-java\targ
et\appengine-try-java\WEB-INF\appengine-web.xml
导致:target\appengine-try -java\WEB-INF\appengine-web.xml(系统可以
找不到指定的文件)
请查看日志[C:\ Users \MICHAE〜1 \AppData \ Local \Temp\appcfg7867248686279117
668.log]了解更多信息。

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

我能够成功完成第5步,在本地运行您的应用程序()。所以我不确定我如何在本地运行,如果我确实缺少一个appengine-web.xml文件。 Google Cloud Platform支持小组表示,包含一个错误,他说在某些时候会被修正。正确的命令如下(注意 -1.0 的结尾):

  appcfg.cmd -A aqueous-flames-561更新目标\appengine-try-java-1.0 


I'm just trying to get the basic hello world project built and deployed by following the instructions on https://console.developers.google.com/start/appengine. I got through all the steps but the last one, Step 6, where I got this error:

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>

I was able to successfully complete Step 5, Run Your App Locally (https://console.developers.google.com/start/appengine). So I’m not sure how I can run locally if I indeed am missing an appengine-web.xml file.

解决方案

Jordan Fish of Google Cloud Platform Support said that Step 6 of https://console.developers.google.com/start/appengine contains a mistake which he said will be fixed at some point. The correct command is as follows (note the ending which has -1.0):

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

这篇关于Google Cloud appcfg.cmd无法部署,因为找不到appengine-web.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 19:14