Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: Can't run project on Tomcat server

Tags:

eclipse

I have installed the Tomcat plugin and it works if i create a New Dynamic Web Project, and import an existing basic maven webapp into it. I can run it with the option of running it "as server".

However, when i did an Import existing project, in Eclipse, of an existing basic maven app, I had to right-click on the Project, choose Configure and convert it to a Faceted project, then right-click on the Project, choose Properties, and choose Targeted runtimes, and choose Tomcat and JRE. However, i still cannot run the project, "as server". When i click Run, i just see Java Applet, Java Application and JUnit Test as the options with which to run the project. I don't see Server.

like image 821
stumped Avatar asked May 17 '13 20:05

stumped


1 Answers

Looks like the answer is: May be Dynamic Web Module in Project Facet is not selected

Go to :- Project > Properties > Project Facets > check Dynamic Web Module

Answer from Mohit Saluja for the following question: Eclipse Juno, maven project not able to run on server

like image 92
stumped Avatar answered Oct 18 '22 02:10

stumped