Run on server option does not display in eclipse helios for spring-maven project
I have imported maven project in eclipse and configured properly. Its a web application, however I can't see 'Run on Server' option on right click in 'Run As'. I have Eclips开发者_如何转开发e Helios and maven, tomcat plugin installed. should it required any plug-in for this or we need to convert project. Other web applications are getting 'Run on Server' option.
check Project properties / Project Facets / Dynamic Web module.
You might find this helpful; http://vijaypm.blogspot.com/2010/12/maven-eclipse-and-tomcat.html
I had similar issue, unable to run on a server due to project facet validation issue.
I'm using Eclipse "Juno Service Release 2". And resolved the issue with the following steps:
- Right click on the project (on Project Explorer)
- Click on Properties
- Click on Project Facets
- Uncheck the unwanted Project Facet(s). Eg., I have unchecked Oracle WebLogic Web App Extensions (because, my server is Apache Tomcat 7)
- Apply >> OK
- Now, I am able to run my web app on Tomcat server.
Hope this will work your you too.
Thanks, Maris
精彩评论