Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: The selection did not contain any resource that can run on a server

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.

like image 263
skip Avatar asked May 28 '12 21:05

skip


Video Answer


1 Answers

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

like image 146
Nagaraj Avatar answered Nov 15 '22 21:11

Nagaraj