Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does Tomcat in Eclipse store the expanded WAR?

Tags:

eclipse

tomcat

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.

like image 703
maks Avatar asked Nov 19 '11 20:11

maks


People also ask

Where does Eclipse put the WAR file?

Eclipse does not put anything anywhere itself. When you build the project using maven, according to maven folder structure it will build and put the war file in its target directory where the project is present in file system (mostly inside your workspace), which you can see on your eclipse package/project explorer.

Where is Tomcat server located in Eclipse?

For configuring the tomcat server in eclipse IDE, click on servers tab at the bottom side of the IDE -> right click on blank area -> New -> Servers -> choose tomcat then its version -> next -> click on Browse button -> select the apache tomcat root folder previous to bin -> next -> addAll -> Finish.

Where is Tomcat stored?

By default, these files are located at TOMCAT-HOME/conf/server. xml and TOMCAT-HOME/conf/web. xml, respectively.


1 Answers

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:

  • Tomcat started in Eclipse but unable to connect to http://localhost:8085/
like image 173
BalusC Avatar answered Sep 21 '22 20:09

BalusC