whitehat
whitehat

Reputation: 2391

How does Eclipse deploy Web Application using Tomcat

How does Eclipse work internally with Apache (or Tomcat). Beacause it doesn't deploy our Web Application inside "webapps" directory of Tomcat. So how does it do it??

Upvotes: 10

Views: 11681

Answers (2)

ankur kushwaha
ankur kushwaha

Reputation: 478

enter image description here

You can also select the second option. Then eclipse will deploy your app under the default "wtpwebapps" folder under tomcat directory.

Click here for more details on how to enable this setting

Upvotes: 1

Wojciech Owczarczyk
Wojciech Owczarczyk

Reputation: 5735

By default Eclipse deploys *.war files inside a internal webapps folder called wtpwebapps which is located in the following directory:

{Workspace_location}/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps

This behaviour however is customizable using Server Locations option defined in server options panel accesible by double clicking the desired server from Servers view in Eclipse:

Tomcat configuration panel in Eclipse

Upvotes: 16

Related Questions