This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am just so confused about it! I have added a Tomcat 5.5 server to my Eclipse 3.3. I created a 'Dynamic Web Project' (named TestProject) in Eclipse Workspace (Default Location) and deployed it on this server.
It works fine in Eclipse internal browser as well as external browsers.
Now what I am not able to understand is this: There is no folder or WAR in webapps directory in the TOMCAT_HOME of the target Tomcat installation. Then how is this project able to run?
If I am not getting a 404 when trying to run it, it means that Tomcat is able to get the deployment even though it is not in webapps directory.
Can someone please tell how is this done? Does eclipse make some entry in some file?
I'm not 100% sure about how it works, but as far as I know it just runs out of your Eclipse workspace: Eclipse starts up Tomcat in such a way that it deploys the project that's in your workspace, without the need to copy anything to your Tomcat installation (which would not work on some systems - for example on Unix-like operating systems, normal users probably have no rights to write to the Tomcat installation directory).
If you really want to know the details of how it works, then you could probably find more info about it in the documentation of the Eclipse Web Tools Platform project. [ March 19, 2008: Message edited by: Jesper Young ]