You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Denis Laroche <De...@pwc.ca> on 2004/03/10 20:23:58 UTC

NoClassDefFoundError: org/apache/log4j/Logger

Hello everybody,

I'm trying to use log4j (version 1.2.8) on the Tomcat server built into 
Sun's JWSDP, version 1.3. I'm experiencing the same problems as reported 
in a previous posting to the list (from Ralf Schneider, 4 Jan 2004), 
i.e., the server doesn't start and reports the following error:

NoClassDefFoundError: org/apache/log4j/Logger

I did what was suggested in a reply to the posting mentioned above, 
which is to add the jar file of log4j to CATALINA_HOME/common/lib and a 
simple log4j.xml file in CATALINA_HOME/common/classes that sends 
messages to the console. It fixed the problem with Tomcat but I still 
can't see the messages I log from my own application. Here's the content 
of the log4j.properties file in the WEB-INF/classes directory of my 
application:

log4j.rootLogger=DEBUG, R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=test.log
log4j.appender.R.MaxFileSize=1MB
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c - %m%n

The output file (test.log) is not even created.

Thanks in advance for any help.

-- 
Denis Laroche
Pratt & Whitney Canada, Test Facilities



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