Title: log4j exception
problem solved by replacing the java mail with a newer version
 
thanks
 

< joachim crombez | associate consultant - software developer | [EMAIL PROTECTED] />
< the reference nv | advanced e-business solutions | http://www.reference.be />

-----Original Message-----
From: Joachim Crombez [mailto:[EMAIL PROTECTED]]
Sent: maandag 1 oktober 2001 10:29
To: '[EMAIL PROTECTED]'
Subject: log4j exception

Hello,

I'm trying to use the log4j 1.1.3 SMTPAppender, but my program crashes with an uncaught
java.lang.NoClassDefFoundError exception in PropertConfigurator.configureRootCategory(Properties, Hierarchy). If I use the console appender, everything goes allright.

The exception is thrown before any of my own code is executed.
 
Visual Age for Java says the uncaught exception is thrown in configureRootCategory() in the sync block:

synchronized(root) {
        parseCategory(props, root, ROOT_CATEGORY_PREFIX, INTERNAL_ROOT_NAME,
                      value);
          }

My configuration file for log4j:

log4j.rootCategory=DEBUG, mail
 
log4j.appender.mail=org.apache.log4j.net.SMTPAppender
log4j.appender.mail.layout=org.apache.log4j.PatternLayout
log4j.appender.mail.layout.ConversionPattern=%d{dd/MM/yyyy HH:mm:ss}\t%-4r\t%-5p\t%37c{2}\t%30M\t%3x - %m%n
[EMAIL PROTECTED]
log4j.appender.mail.SMTPHost=*******
log4j.appender.mail.Subject=JCs XmlTemplate log4j notice
[EMAIL PROTECTED]
log4j.appender.mail.BufferSize=5
log4j.appender.mail.EvaluatorClass=TriggerAfterXLogEvents

(I changed the SMTPHost into *******)
I installed all necessary packages (javax.mail, jaf, ...) and my classpath is ok.

Any idea why this happens?

Thanks

< joachim crombez | associate consultant - software developer | [EMAIL PROTECTED] />
< the reference nv | advanced e-business solutions | http://www.reference.be />

Reply via email to