Your dynamic web project should be associated to a server. You can see your servers in the Servers view. Under your Tomcat server, you should see your application. You should also have a "Servers" project, which holds your Tomcat configuration. In this project, there is a file called server.xml. If you look at its content, you should see a Context tag pointing to your project. That's why your files are not actually deployed to the server. Tomcat knows where it has to find them.
Joseph Sweet wrote:So when I start tomcat up the usual way, i.e. not from within eclipse, how can I tell it to run a project which is deployed outside of the tomcat/webapps folder?
You provide a Context definition. This can be a META-INF/context.xml file in the WAR or an XML file that you install in the TOMCAT_HOME/conf/Catalina/localhost directory (which will override META-INF/context.xml).
The root of this file is the Tomcat Context element, and the docBase= attribute should have the absolute pathname of the WAR file or of an exploded WAR directory. The app will be deployed under the context name that you provide on the path= attribute.
An IDE is no substitute for an Intelligent Developer.
Joined: Jan 29, 2005
Thanks for this info guys!
Is there a way to tell Eclipse to physically deploy a web project into the tomcat/webapps folder?