Where is catalina_base and catalina_home located for tomcat6?

Solution 1:

Both are stored and can be set in /etc/default/tomcat6. By default, CATALINA_HOME is /usr/share/tomcat6, and CATALINA_BASE is /var/lib/tomcat6.

Solution 2:

In either Tomcat6 or Tomcat7 installed with Apt-Get, find the declarations of CATALINA_HOME and CATALINA_BASE, in /etc/init.d/tomcat6 or tomcat7, and EXPORT them to the OS variables. They are then visible on a ENV command. and for use by other software.

Solution 3:

I have ubuntu v10. And I have tomcat v6 installed at which is at /usr/lib/tomcat6/...

Answer: In my system, both variables are stored in /etc/init.d/tomcat6