Issues Deploying ROOT Context in Tomcat6

Posted by Josh K on Stack Overflow See other posts from Stack Overflow or by Josh K
Published on 2011-01-29T23:06:56Z Indexed on 2011/01/29 23:25 UTC
Read the original article Hit count: 324

Filed under:
|
|
|

I'm working on getting an application deployed to the ROOT ("/") context in my Tomcat 6 instance.

Here's what has been done:

  • Defined another virtual host (domain.com)
  • Created the respective folder (/etc/tomcat6/Catalina/domain.com)
  • Set it to auto deploy WAR's
  • Set appBase to CATALINA_BASE/domainapps and created respective folder
  • Copied manager.xml from localhost to domain.com.

Now I'm trying to deploy into the ROOT context by uploading a ROOT.war to CATALINA_BASE/domainapps. This isn't working. I don't get any exceptions thrown, but the stock ROOT page ("It works !") stays up. I have successfully deployed it into another context (by uploading domainapp.war and viewing at /domainapp), but not ROOT.

Re-reading the Virtual Host setup it makes reference to CATALINA_HOME and CATALINA_BASE. My CATALINA_HOME is at /usr/share/tomcat6/domainapp while CATALINA_BASE is /var/lib/tomcat6. Which should I be using for what? Currently haven't touched CATALINA_HOME but will try messing with a few things there.


A better question might be what is the generally accepted flow taken to setup a new Tomcat instance and deploy an application to the root context.

© Stack Overflow or respective owner

Related posts about java

Related posts about deployment