Developers: Tomcat 7 and Eclipse - ndexbio/ndex-rest GitHub Wiki
Overview
Eclipse includes utilities for integration with servers.
First, ensure that the Servers tab is displayed in the workbench via Window, Show View, Servers
Right click in the main area of the tab and select New, Server
Select the server type Apache, Tomcat v7.0 Server
Configuring ROOT
Navigate to the wtpwebapps plugin metadata directory in your Eclipse workspace, then copy in the ROOT webapp directory from your Tomcat directory. (First backup the current ROOT)
This is currently required to enable the correct operation of the Tomcat server under Eclipse.
> cd /_path_/_to_/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps
> mv ROOT ROOT-old
> cp -R /opt/ndex/tomcat/webapps/ROOT ROOT
References
This tutorial at www.coreservelets.com proved helpful - they were one of the sites that included the non-obvious workaround step required for successful operation in which the ROOT web app is copied.
http://www.coreservlets.com/Apache-Tomcat-Tutorial/tomcat-7-with-eclipse.html