0

我在命令提示符下运行了 mvn war:war,然后我使用 appcfg update 上传到 appengine,我得到了这个错误。该应用程序适用于本地主机。除了路径错误之外,没有 appengine-web.xml。任何帮助将不胜感激谢谢。

C:\appengine-java-sdk\bin>appcfg update C:\mirror-quickstart-java-master
Reading application configuration data...
Aug 31, 2013 7:10:33 AM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
SEVERE: Received exception processing C:/mirror-quickstart-java-master\WEB-INF/appengine-web.xml
com.google.apphosting.utils.config.AppEngineConfigException: Could not locate C:\mirror-quickstart-java-master\WEB-INF\appengine-web.xml
        at com.google.apphosting.utils.config.AppEngineWebXmlReader.getInputStream(AppEngineWebXmlReader.java:140)
        at com.google.apphosting.utils.config.AppEngineWebXmlReader.readAppEngineWebXml(AppEngineWebXmlReader.java:75)
        at com.google.appengine.tools.admin.Application.<init>(Application.java:182)
        at com.google.appengine.tools.admin.Application.readApplication(Application.java:319)
        at com.google.appengine.tools.admin.AppCfg.readWar(AppCfg.java:279)
        at com.google.appengine.tools.admin.AppCfg.readApplication(AppCfg.java:270)
        at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:208)
        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: C:\mirror-quickstart-java-master\WEB-INF\appengine-web.xml (The system cannot find the path specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at java.io.FileInputStream.<init>(FileInputStream.java:97)
        at com.google.apphosting.utils.config.AppEngineWebXmlReader.getInputStream(AppEngineWebXmlReader.java:137)
        ... 8 more

Bad configuration: Could not locate C:\mirror-quickstart-java-master\WEB-INF\appengine-web.xml
  Caused by: C:\mirror-quickstart-java-master\WEB-INF\appengine-web.xml (The system cannot find the path specified)
Please see the logs [C:\Users\Hasan\AppData\Local\Temp\appcfg4724142030047376778.log] for further information.
4

1 回答 1

0

支持 Google App Engine 的最新版本 mirror-quickstart-java 已标记为app-engine; 你应该使用这个特定的版本。

于 2013-09-11T19:00:02.357 回答