once you installed the Tomcat check the tomcat properties under java options following variables has been set by default.
-Dcatalina.home=C:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0
-Dcatalina.base=C:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0
-Djava.endorsed.dirs=C:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0\endorsed
-Djava.io.tmpdir=C:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0\temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=C:\Program Files (x86)\Apache SoftwareFoundation\Tomcat
6.0\conf\logging.properties
You do not need to set CATALINA_HOME yourself , even when runing inside Eclipse.
The only times you HAVE to set CATALINA_HOME and/or CATALINA_BASE are if you want to override the default values. Most commonly, you'd do that if you were using the same Tomcat binaries to run multiple instances of Tomcat.
tomcat-juli.jar
This tomcat-juli.jar is a third party component used for logging purposes. It contains the full Apache Commons Logging implementation and thus is able to discover the presense of log4j and configure itself.
how you can use tomcat-juli.jar
If you want to configure Tomcat to use log4j globally:
- Download or build tomcat-juli.jar and tomcat-juli-adapters.jar that are available as an "extras" component for Tomcat.
- Put log4j.jar and tomcat-juli-adapters.jar from "extras" into $CATALINA_HOME/lib.
Replace $CATALINA_HOME/bin/tomcat-juli.jar with tomcat-juli.jar from "extras".