简体   繁体   English

gcloud app deploy 命令错误 INVALID_ARGUMENT:此运行时需要 WEB-INF/appengine-web.xml

[英]gcloud app deploy command error INVALID_ARGUMENT: WEB-INF/appengine-web.xml is required for this runtime

I try to convert work from appengine-web.xml file to work with app.yaml file in google app engine project, so I created app.yaml file and put it in main folder of project.我尝试将 appengine-web.xml 文件中的工作转换为使用 google app engine 项目中的 app.yaml 文件,所以我创建了 app.yaml 文件并将其放在项目的主文件夹中。 when I try to deploy my project with "gcloud app deploy" command I get error INVALID_ARGUMENT: WEB-INF/appengine-web.xml is required for this runtime if I run "gcloud app deploy path/appengine-web.xml" command the deploy is work fine what i need to to convert to work with app.yaml file?当我尝试使用“gcloud app deploy”命令部署我的项目时,我收到错误 INVALID_ARGUMENT: WEB-INF/appengine-web.xml is required for this runtime if I run “gcloud app deploy path/appengine-web.xml” command the部署工作正常,我需要转换为使用 app.yaml 文件吗? additions info my project write in java8 my project write in eclipse附加信息 我的项目用 java8 编写 我的项目用 Eclipse 编写

thank you谢谢你

One Java Application that will be deployed in App Engine must have a file named appengine-web.xml in its WAR, in the directory WEB-INF/.将在 App Engine 中部署的一个Java 应用程序必须在其 WAR 目录 WEB-INF/ 中有一个名为appengine-web.xml的文件。

I verified the gcloud app deploy command documentation and it seems that for Java 8 you need to run :我验证了gcloud app deploy命令文档,对于 Java 8,您似乎需要运行:

gcloud app deploy ~/my_app/WEB-INF/appengine-web.xml

That is the one that you are running.那就是你正在运行的那个。

On the other hand, I found this documentation ( for Flexible ) that mentions how to organize your files in case that you want to use the app.yaml for java 8另一方面,我发现这个文档对于 Flexible )提到了如何组织文件,以防您想使用 java 8 的 app.yaml

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 appengine-web.xml - XML 错误验证 - appengine-web.xml - XML error validating 验证appengine-web.xml的XML错误 - XML error validating appengine-web.xml 如何修复“ com.google.cloud.tools.appengine.AppEngineException:java.nio.file.NoSuchFileException:…\\ exploded- {project} \\ WEB-INF \\ appengine-web.xml” - How to fix “com.google.cloud.tools.appengine.AppEngineException: java.nio.file.NoSuchFileException: …\exploded-{project}\WEB-INF\appengine-web.xml” 配置appengine-web.xml - Configuring appengine-web.xml 将GAE项目迁移到Java 8-将运行时属性添加到appengine-web.xml后,获得XML验证错误 - Migrating GAE project to Java 8 - get XML validation error after adding runtime property to appengine-web.xml 无法在Google App引擎上部署应用程序:appengine-web.xml不包含 <threadsafe> 元件 - unable to deploy the application on google app engine : appengine-web.xml does not contain a <threadsafe> element 更新GAE应用程序时出错-缺少appengine-web.xml - Error when updating GAE application - missing appengine-web.xml appengine-web.xml未添加到快照 - appengine-web.xml not added to snapshot GWT无法通过找不到appengine-web.xml开始 - GWT not starting by not finding appengine-web.xml 为什么Maven寻找`webapp \\ WEB-INF \\ web.xml`而不是`web-app \\ WEB-INF \\ web.xml` - Why is maven looking for `webapp\WEB-INF\web.xml` instead of `web-app\WEB-INF\web.xml`
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM