Eclipse provides a very convenient way to create a dynamic web application (J2EE) and configure it with a server like tomcat or JBoss within eclipse itself. When you deploy your web application in the tomcat separately, you copy the web module directory or the war file to the webapps folder of tomcat. But when you do the same using eclipse, it does not copy any file related to the web application to your tomcat deployment. So when sometime you need to debug your web application, say, by making some temporary changes in JSP files or to see the java files generated for the JSP files, at that time you need to know the actual path where eclipse stores the web application. Eclipse actually creates a tomcat like folder structure in the current workspace. Following is the path of the webapps folder where you can find your web application:

Eclipse_Workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps

Alex Smirnov

Senior Java Developer. JAVA, PHP, Cold Fusion, SQL, Air, Flash.

More Posts

Tagged with: