Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat webapps directory in windows

I am right now using eclipse to develop a simple web application and I am using Tomcat as web server. I have configured Tomcat in Eclipse and my application runs fine.

My question is: where does Tomcat store the web app and in which folder does it store the classes? I wanted to check the JSP to servlet conversion and wanted to verify how that converted file looks like and I am trying to find where exactly Tomcat stores the web app. I went into the webapps folder where Tomcat was extracted but my webapp is not in that folder. Can someone tell where I can find the converted JSPs?

like image 593
ravi Avatar asked Dec 17 '12 06:12

ravi


People also ask

Where is Tomcat webapps folder?

The default appBase location is "$CATALINA_BASE/webapps", or "$CATALINA_HOME/webapps", if no base directory has been defined.

How do I access webapps in Tomcat?

Open the web. xml file of the Tomcat manager application, for example TomcatInstallDir /webapps/manager/WEB-INF/web.


2 Answers

right-click on the web project and select Run As then Run Configurations...

From the Arguments tab, the tomcat deploy path is provided as a VM argument with the name -Dwtp.deploy

like image 195
Ahmad Y. Saleh Avatar answered Oct 06 '22 19:10

Ahmad Y. Saleh


Found out the location. Double clicked on tomcat server inside eclipse and got the server path. something like this .. C:\EclipseWorkspace.metadata.plugins\org.eclipse.wst.server.core\tmp0

The location of the web app will be in the .metadata folder inside eclipse workspace (chk server path) and the converted jsp files can be found in location as given below.

serverpath\work\Catalina\localhost\loginApp\org\apache\jsp

@Admins ... This question can be closed or what ever action needs to be taken.

Thanks.

like image 39
ravi Avatar answered Oct 06 '22 18:10

ravi