Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

difference between wtpwebapps and webapps folder in tomcat

when I run my dynamic web project from eclipse it gets deployed to wtpwebapps. However I want to deploy a war file to tomcat so when I checked here in SO this came up How to deploy a war file in Tomcat 7

It says I have to deploy to webapps folder in tomcat.

Can anybody please explain me the details between wtpwebapps folder and webapps folder in tomcat and also if I can deploy war files to wtwebpapps folder instead of webapps folder.

like image 909
Nav Avatar asked Sep 16 '12 10:09

Nav


People also ask

Where is webapps Tomcat?

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

Where is webapps folder in tomcat9?

The default directory is /var/lib/tomcat9/webapps/ . You only need to remember /var/lib/tomcat9/ , the other interesting directories like conf and logs are symlinked from there.

Where should I place WAR file in Tomcat?

Perhaps the simplest way to deploy a WAR file to Tomcat is to copy the file to Tomcat's webapps directory. Copy and paste WAR files into Tomcat's webapps directory to deploy them. Tomcat monitors this webapps directory for changes, and if it finds a new file there, it will attempt to deploy it.

What is the root webapp?

webapps is where web applications are deployed. ROOT is a special name for the unnamed root web application. E.g. web application with context /Foo is in webapps/Foo. war and/or webapps/Foo/ folder. Web application with context / is in webapps/ROOT.


1 Answers

wtpwebapps is an eclipse-specific folder created when you run a dynamic web project on Tomcat within eclipse.

Webapps directory is within the Tomcat home and it's where you copy over your WAR files manually.

like image 182
asgs Avatar answered Sep 29 '22 08:09

asgs