Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an application that needs to run under Tomcat.

I have installed Tomcat but I don't know where can I put the directory of the project.

share|improve this question

Note: $CATALINA_HOME is where Tomcat is installed.

If the application is a WAR file, just drop it in $CATALINA_HOME/webapps and TC will automatically create the web app for you.

If you have all of the contents of the application, you must distribute as so:

The root path of your application: $CATALINA_HOME/webapps/newfolder

Define your web.xml file here: $CATALINA_HOME/webapps/newfolder/WEB-INF

Place compiled class files here: $CATALINA_HOME/webapps/newfolder/WEB-INF/classes

Place dependencies here: $CATALINA_HOME/webapps/newfolder/WEB-INF/libs

Reference for web.xml: http://tomcat-configure.blogspot.com/2009/01/tomcat-web-xml.html & http://wiki.metawerx.net/wiki/Web.xml

share|improve this answer
Thanks for your response. I created the WAR file and put into /webapps and now I've a folder with the same name of the WAR file How can I execute it? – freddyparisi Jun 20 '12 at 7:46
Let say for my example the war extracted a folder named 'test', point your browser to server_ip:port_num/test – Tim Jun 20 '12 at 19:57
In /var/lib/tomcat6/webapps there is a folder named test and if I check it into the manager side, I start it and this is the answer: "FAIL - Application at context path /test could not be started" – freddyparisi Jun 21 '12 at 7:36
What was the name of the WAR file you placed in the webapps folder? – Tim Jun 21 '12 at 13:28
the same of the folder – freddyparisi Jun 21 '12 at 15:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.