pompiuses wrote:
I'm using Tomcat 5.0.30 running on Ubuntu Linux (6.06).

I've made a small webapp which runs fine under Tomcat on Windows, but on
Linux I've got a problem with log4j.

I've put "commons-logging-1.1.jar" and "log4j-1.2.13.jar" in the webapp libs
directory ($CATALINA_HOME/webapps/ROOT/WEB-INF/lib). In the webapp classes
directory I've put log4j.properties.

The problem is that the webapp won't even run as long as
"commons-logging-1.1.jar" is in the class path. If I remove it, the webapp
will run but there's no logging.

Then I tried putting log4j.properties in $CATALINA_HOME/shared/classes and
$CATALINA_HOME/common/classes, but it still wouldn't log anything.

No error messages is written to system.out (/var/log/tomcat5/catalina.out)
or any of the Tomcat log files.

My log4j.properties look like this (just prints to the console):

# The log4j configuration file.
log4j.rootLogger=debug, R
log4j.appender.R=org.apache.log4j.ConsoleAppender
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%-5p %-30.30c{1} %x - %m%n


How can I test if log4j.properties really is in the classpath? Perhaps it's
missing from the classpath?

Perhaps using the ROOT directory for my webapp is a bad idea?

Any comments and suggestions are welcome :-)

Couple of things,
1) Try putting the log4j*.jar in tomcat*\commons\lib and see if it works..
2) You may be missing the jtds*.jar.

- Lou Caudell

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to