How to Change the Default Webapp Deployment Location of Tomcat in Eclipse
When you deploy your Java web application to the Apache Tomcat server, via Eclipse, by default the web app will be deployed under {YOUR_ECLIPSE_WORKSPACE}\.metadata\.plugins\org.eclipse.wst.server.core\tmp{a-number}\wtpwebapps.
Suppose if you want to deploy your web app to a location that is easily navigable, follow these steps.
- First make sure you have removed all the web apps that are currently added to your server instance (In servers view, right click on the server name and then Add and Remove).
- And then double click on the server instance in servers view which will open up that server’s configuration page.
- On that page, see under Server Locations and select either the option Use Tomcat Installation to deploy the web app under the directory where the Tomcat server is installed or Use custom location to manually specify.
- Save, Re-add the web application and then Publish.
Now the deployed web app will be under the directory of your choice.
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)
Tags:





Comments
Ratnesh Singh replied on Mon, 2012/12/17 - 12:53am
Veer Sundar, Entries are not editable. Is there a way to make these editable?
Alternate to achieve this is
Open launch config and change values accordingly in Argument tab.
Basil Bourque replied on Fri, 2012/12/28 - 1:04am
Thank you so much for this useful tip. I have struggled with Eclipse's habit of hiding my web app in that invisible path.