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.
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.
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.
By default, these files are located at TOMCAT-HOME/conf/server. xml and TOMCAT-HOME/conf/web. xml, respectively.
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).
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.
This will also make the Tomcat homepage available.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With