logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Kruzich <kkruz...@mshift.com>
Subject Default Initialization under Tomcat (5, 6)
Date Thu, 15 Jul 2010 17:20:59 GMT

I was able to get log4j working with syslog without too much trouble
using tomcat5. Yet with tomcat6 I'm having a heck of a time trying to
figure out where log4j.properties should go.




works great!



tomcat    9995  0.5  1.2 649772 24900 ?        Sl   21:01   0:03
/usr/bin/java -classpath

error: JVM_LIBDIR /usr/lib/jvm-exports/java-1.6.0 does not exist or is
not a directory -Dcatalina.base=/usr/share/tomcat6
-Dcatalina.home=/usr/share/tomcat6 -Djava.endorsed.dirs=
org.apache.catalina.startup.Bootstrap start


(and many other locations)

fails, fails...

*?* Do I need a dir like /usr/share/tomcat6/common

These instructions are over 8 years old so I imagine this section, in
particular has changed quite a bit "Default Initialization under Tomcat"



And lastly, there's this snippet on the Apache website -- is all this


# Download Log4J (v1.2 or later) and place the log4j jar in
# Build or download the additional logging components. See the extras
components documentation for details.
# Replace $CATALINA_HOME/bin/tomcat-juli.jar with
# Place output/extras/tomcat-juli-adapters.jar in $CATALINA_HOME/lib.
# Delete $CATALINA_BASE/conf/logging.properties to prevent
java.util.logging generating zero length log files.
# Start Tomcat

To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

View raw message