Patrick Burleson wrote about problems in getting Tomcat to use log4j by following the
FAQ. I have been struggling the same fight for some time, but a hint in one of the
recipes finally lead me to the solution.
It is --not-- enough to place log4j-x-x-x.jar in $CATALINA_HOME/common/lib and the
properties file in .../common/classes.
You --also-- have to place log4j-x-x-x.jar in classpath when starting tomcat.
I did not find a "nice" way of doing this, but appending the path to log4j-x-x-x.jar
to the line
CLASSPATH="$CLASSPATH":"$CATALINA_HOME"/bin/bootstrap.jar:"$CATALINA_HOME"/bin/c
ommons-logging-api.jar
in .../bin/catalina.sh did the trick, i.e. with this change, commons-logging will
discover logj4.jar and use it.
It would be nice to be able to supply this extra classpath entry when invoking
catalina.sh instead of having to modify the script each time tomcat is updated.
regards
Erik Bertelsen
-------------------------------------------------
WebMail fra Tele2 http://www.tele2.dk
-------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]