简体   繁体   English

配置appengine-web.xml

[英]Configuring appengine-web.xml

I successfully cloned an web application project from Github to eclipse Luna. 我成功地从Github克隆了一个Web应用程序项目来蚀刻Luna。 When I try to deploy the cloned project to google app engine, eclipse does not recognise it as a web project. 当我尝试将克隆的项目部署到谷歌应用引擎时,eclipse不会将其识别为Web项目。 I realised that it was missing the appengine-web.xml file. 我意识到它缺少appengine-web.xml文件。 I created one under directory WEB-INF in War, I saved it but when I try again to deploy, still eclipse says that the project is not an app engine project. 我在战争中的WEB-INF目录下创建了一个,我保存了它但是当我再次尝试部署时,仍然eclipse说项目不是app引擎项目。

What could I be possibly doing wrong? 我可能做错了什么?

Since you do not provide the exact error message, I list several possible causes: 由于您没有提供确切的错误消息,我列出了几个可能的原因:

  1. Right click on your project, select "Google" option, then "App Engine". 右键单击您的项目,选择“Google”选项,然后选择“App Engine”。 Make sure that "Use Google App Engine" checkbox is checked. 确保选中“使用Google App Engine”复选框。

  2. In your build path, make sure that "Allow output folders for source folders" is checked and the correct folder is specified (ie "MyProject/war/WEB-INF/classes". 在构建路径中,确保选中“允许源文件夹的输出文件夹”并指定正确的文件夹(即“MyProject / war / WEB-INF / classes”)。

  3. Make sure that you are logged in Google with the correct account before you try to deploy - your current account is shown in the bottom right corner. 在尝试部署之前,请确保使用正确的帐户登录Google - 您的当前帐户显示在右下角。

UPDATE: 更新:

This error indicates that your project is not a Java project. 此错误表示您的项目不是Java项目。 Select Project Facets in Properties. 在Properties中选择Project Facets。 On the right side make sure that on the left side Java 1.7 is selected. 在右侧确保选中左侧的Java 1.7。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM