maks
maks

Reputation: 6006

Where does Tomcat in Eclipse store the expanded WAR?

When I launch my web application from Eclipse Indigo, where does Tomcat 7 store web application folder? It is not located in Tomcat's own webapp folder. Why I can not access Tomcat's default home page (I talk about http://localhost:8080), if it started under Eclipse? If I start tomcat manually (thruogh the startup.bat), I can access http://localhost:8080.

Upvotes: 9

Views: 10144

Answers (2)

Udo Held
Udo Held

Reputation: 12538

Per default it will deploy your application in a subfolder of .metadata-folder from your workspace.

Upvotes: 3

BalusC
BalusC

Reputation: 1108722

Doubleclick the Tomcat server entry in Servers view and check the Server Locations section. The path is in there and you can also configure in there if Eclipse should use the Tomcat installation instead of the workspace metadata (which is the default setting).

enter image description here

Note that the server must be published with no modules present to make changes. I.e. stop the server, remove all projects and publish the server.

enter image description here

This will also make the Tomcat homepage available.

See also:

Upvotes: 12

Related Questions