Eclipse:选择不包含可以在服务器上运行的任何资源 [英] Eclipse: The selection did not contain any resource that can run on a server
问题描述
我无法在eclipse ide中将maven java web应用程序运行到配置的tomcat。
最初,我可以右键单击项目并在tomcat服务器上运行它,但自从我将项目分享到存储库之后,我无法做到这一点。 >
我将项目从存储库中断开,现在我甚至不会在eclipse ide中看到Run as - > Run on Server选项。
我正在使用m2e插件版本.0.12.1和eclipse helios和tomcat 6。
有人可以帮助我了解我在这里缺少什么吗?
谢谢。
PROBLEM
当您尝试使用Run on Server(SA + X + R)选项在服务器上运行项目时,eclipse会返回以下消息:
选择不包含可以在服务器上运行的任何资源。
解决方案
在导航面板上,单击项目弹出菜单,属性,项目构面,检查:
- 动态Web模块
- Java
它为我工作尝试这可能是这是你的问题
I am not able to run maven java web application project to the configured tomcat within eclipse ide.
Initially I could right click on the project and run it on tomcat server but ever since I shared the project to a repository I am not able to do that.
I disconnected the project form the repository and now I I dont even see the Run as -> Run on Server option inside eclipse ide.
I am using m2e plugin version .0.12.1 and eclipse helios and tomcat 6.
Could someone help me understand what am I missing here?
Thanks.
PROBLEM
When you try to run the project on the server using "Run on Server" (SA+X+R) option, eclipse returns the following message: The selection did not contain any resources that can run on a server.
SOLUTION
On the navigation panel, click over the project for pop-up menu, properties, Project Facets, check: - Dynamic Web Module - Java It worked for me try this may be this is your problem
这篇关于Eclipse:选择不包含可以在服务器上运行的任何资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!