Tomcat Provides a mechanism where you can run multiple instances that all utilizes some common configuration elements. You would use the environment variables CATALINA_HOME
vs CATALINA_BASE
to configure tomcat(or corresponding properties). See this article for an explanation.
"The first properties (catalina.home)
points to the location of the common
information, while the other property
(catalina.base) points to the
directory where all the instance
specific information are held."
So the default tomcat6 package in Ubuntu has a configuration that is friendly to people who run single instances as well as those who run multiple instances.
You can see that the tomcat6 package includes both:
/usr/share/tomcat6
/var/lib/tomcat6
If you are only running one instance of tomcat, then you probably want to use the /var/lib/tomcat6
location.
If by chance you(or other readers) are looking for scripts to automate installing multiple instances of Tomcat on a debian based distro, this one has worked well for me with some slight modifications.