eclipse错误:Google App Engine云端点:找不到web.xml

时间:2016-03-31 22:10:55

标签: google-app-engine google-plugin-eclipse

我在eclipse中看到这个奇怪的错误:

There was a problem generating the API metadata for your Cloud Endpoints: Could not find web.xml

我不确定为什么我收到此错误,因为web.xml文件正是它应该是的位置:

enter image description here

我正在使用:

  • Eclipse Luna Service Release 2(4.4.2)
  • Eclipse 4.4的Google App Engine插件
  • App Engine SDK 1.9.34

我在网上搜索过,但我没有发现其他人遇到此特定错误。

这个可能与我必须手动打开“动态Web模块”Project Facet以创建新servlet这一事实有关。

https://stackoverflow.com/a/35117141/2341218

更新

关闭项目的“动态Web模块”项目构面会使错误消失。

如果再次将其切换回来,它似乎就会消失,直到你选择通过“File> New> Servlet”生成一个新的servlet。

这发生在最近发布的   - Eclipse 4.5(Mars)的Google App Engine插件

enter image description here

0 个答案:

没有答案