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 Ceki Gülcü <ce...@qos.ch> on 2004/03/09 18:19:12 UTC
RE: Smtp Appender Exception on load from XML config file :
NoclassDeffoundError
That is strange because line 593 only has a closing brace on my copy of
log4j 1.2.8 source code. And closing braces should not throw a
NoClassDefFoundError exception. Are you sure you are using 1.2.8?
At 05:13 PM 3/9/2004 +0000, you wrote:
>I'm using version 1.2.8
>
>-----Original Message-----
>From: Ceki Gülcü [mailto:ceki@qos.ch]
>Sent: 09 March 2004 17:07
>To: Log4J Users List
>Subject: RE: Smtp Appender Exception on load from XML config file :
>NoclassDeffoundError
>
>
>At 04:43 PM 3/9/2004 +0000, Ronan Egan wrote:
> >Sorry,
> >should have included it in my first email:
> >
> >Thread [main] (Suspended (exception NoClassDefFoundError))
> > DOMConfigurator.doConfigure(String, LoggerRepository) line: 593
> > DOMConfigurator.configure(String) line: 687
> > BrownLog.main(String[]) line: 35
> >
> >BrownLog is my basic example.
> >Thanks again
> >Ronan
>
>Which version of log4j is this?
>
>--
>Ceki Gülcü
>
> For log4j documentation consider "The complete log4j manual"
> ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>For additional commands, e-mail: log4j-user-help@logging.apache.org
--
Ceki Gülcü
For log4j documentation consider "The complete log4j manual"
ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
RE: Smtp Appender Exception on load from XML config file :
NoclassDeffoundError
Posted by Ceki Gülcü <ce...@qos.ch>.
Ronan,
SMTPAppender relies on the JavaMail API. It has been tested with
JavaMail API version 1.2. The JavaMail API requires the JavaBeans
Activation Framework package.
From what I can gather, you seem to be missing the JavaBeans
Activation Framework.
See http://java.sun.com/products/javabeans/glasgow/jaf.html
At 03:59 PM 3/10/2004 +0000, Ronan Egan wrote:
>Ceki,
>its turns out this is the correct stack trace:
>
>log4j: Threshold ="null".
>log4j: Level value for root is [debug].
>log4j: root level set to DEBUG
>log4j: Class name: [org.apache.log4j.net.SMTPAppender]
>log4j: Setting property [SMTPHost] to [athena].
>log4j: Setting property [to] to [ronan@redcircle.com].
>log4j: Setting property [from] to [ronan@redcircle.com].
>log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
>log4j: Setting property [conversionPattern] to [%d %-5p %c - %m%n].
>java.lang.NoClassDefFoundError: javax/activation/DataSource
> at org.apache.log4j.net.SMTPAppender.activateOptions(Unknown Source)
> at
> org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
> at
--
Ceki Gülcü
For log4j documentation consider "The complete log4j manual"
ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
RE: Smtp Appender Exception on load from XML config file : NoclassDeffoundError
Posted by Ronan Egan <eg...@eircom.net>.
Hence my problem was that I hadn't included the activation.jar in my build
path.
Thanks for the help.
-----Original Message-----
From: Ronan Egan [mailto:eganronan@eircom.net]
Sent: 10 March 2004 15:59
To: Log4J Users List
Subject: RE: Smtp Appender Exception on load from XML config file :
NoclassDeffoundError
Ceki,
its turns out this is the correct stack trace:
log4j: Threshold ="null".
log4j: Level value for root is [debug].
log4j: root level set to DEBUG
log4j: Class name: [org.apache.log4j.net.SMTPAppender]
log4j: Setting property [SMTPHost] to [athena].
log4j: Setting property [to] to [ronan@redcircle.com].
log4j: Setting property [from] to [ronan@redcircle.com].
log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
log4j: Setting property [conversionPattern] to [%d %-5p %c - %m%n].
java.lang.NoClassDefFoundError: javax/activation/DataSource
at org.apache.log4j.net.SMTPAppender.activateOptions(Unknown Source)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
at
org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:210)
at
org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java
:140)
at
org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator
.java:153)
at
org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigu
rator.java:415)
at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:384)
at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:783)
at
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:666)
at
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:616)
at
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:584)
at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:687)
at BrownLog.main(BrownLog.java:36)
Exception in thread "main"
-----Original Message-----
From: Ceki Gülcü [mailto:ceki@qos.ch]
Sent: 09 March 2004 17:59
To: Log4J Users List
Subject: RE: Smtp Appender Exception on load from XML config file :
NoclassDeffoundError
Ronan,
The log4j-user list strips out many types of attachments and attachments
over a certain size (300 Kb or so).
If your attachment consists of just plain text, then please send it as
text. Apologies for the hassle.
At 05:35 PM 3/9/2004 +0000, you wrote:
>Ceki,
>I've attached a trace of the debug run in case this may be of any further
>help
>
>Also here is what the console appender spits out:
>
>log4j: Threshold ="null".
>log4j: Level value for root is [debug].
>log4j: root level set to DEBUG
>log4j: Class name: [org.apache.log4j.net.SMTPAppender]
>log4j: Setting property [SMTPHost] to [athena].
>log4j: Setting property [to] to [ronan@redcircle.com].
>log4j: Setting property [from] to [ronan@redcircle.com].
>log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
>log4j: Setting property [conversionPattern] to [%d %-5p %c - %m%n].
--
Ceki Gülcü
For log4j documentation consider "The complete log4j manual"
ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
RE: Smtp Appender Exception on load from XML config file : NoclassDeffoundError
Posted by Ronan Egan <eg...@eircom.net>.
Ceki,
its turns out this is the correct stack trace:
log4j: Threshold ="null".
log4j: Level value for root is [debug].
log4j: root level set to DEBUG
log4j: Class name: [org.apache.log4j.net.SMTPAppender]
log4j: Setting property [SMTPHost] to [athena].
log4j: Setting property [to] to [ronan@redcircle.com].
log4j: Setting property [from] to [ronan@redcircle.com].
log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
log4j: Setting property [conversionPattern] to [%d %-5p %c - %m%n].
java.lang.NoClassDefFoundError: javax/activation/DataSource
at org.apache.log4j.net.SMTPAppender.activateOptions(Unknown Source)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
at
org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:210)
at
org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java
:140)
at
org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator
.java:153)
at
org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigu
rator.java:415)
at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:384)
at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:783)
at
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:666)
at
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:616)
at
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:584)
at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:687)
at BrownLog.main(BrownLog.java:36)
Exception in thread "main"
-----Original Message-----
From: Ceki Gülcü [mailto:ceki@qos.ch]
Sent: 09 March 2004 17:59
To: Log4J Users List
Subject: RE: Smtp Appender Exception on load from XML config file :
NoclassDeffoundError
Ronan,
The log4j-user list strips out many types of attachments and attachments
over a certain size (300 Kb or so).
If your attachment consists of just plain text, then please send it as
text. Apologies for the hassle.
At 05:35 PM 3/9/2004 +0000, you wrote:
>Ceki,
>I've attached a trace of the debug run in case this may be of any further
>help
>
>Also here is what the console appender spits out:
>
>log4j: Threshold ="null".
>log4j: Level value for root is [debug].
>log4j: root level set to DEBUG
>log4j: Class name: [org.apache.log4j.net.SMTPAppender]
>log4j: Setting property [SMTPHost] to [athena].
>log4j: Setting property [to] to [ronan@redcircle.com].
>log4j: Setting property [from] to [ronan@redcircle.com].
>log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
>log4j: Setting property [conversionPattern] to [%d %-5p %c - %m%n].
--
Ceki Gülcü
For log4j documentation consider "The complete log4j manual"
ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
RE: Smtp Appender Exception on load from XML config file : NoclassDeffoundError
Posted by Ronan Egan <eg...@eircom.net>.
Thanks Ceki,
here's the stack trace from the thread:
I'm positive the log4j is version 1.2.8 as its the only version I've ever
downloaded and its straight out of the box so to speak.
Thread [main] (Suspended (exception NoClassDefFoundError))
DOMConfigurator.doConfigure(String, LoggerRepository) line: 593
DOMConfigurator.configure(String) line: 687
BrownLog.main(String[]) line: 36
-----Original Message-----
From: Ceki Gülcü [mailto:ceki@qos.ch]
Sent: 09 March 2004 17:59
To: Log4J Users List
Subject: RE: Smtp Appender Exception on load from XML config file :
NoclassDeffoundError
Ronan,
The log4j-user list strips out many types of attachments and attachments
over a certain size (300 Kb or so).
If your attachment consists of just plain text, then please send it as
text. Apologies for the hassle.
At 05:35 PM 3/9/2004 +0000, you wrote:
>Ceki,
>I've attached a trace of the debug run in case this may be of any further
>help
>
>Also here is what the console appender spits out:
>
>log4j: Threshold ="null".
>log4j: Level value for root is [debug].
>log4j: root level set to DEBUG
>log4j: Class name: [org.apache.log4j.net.SMTPAppender]
>log4j: Setting property [SMTPHost] to [athena].
>log4j: Setting property [to] to [ronan@redcircle.com].
>log4j: Setting property [from] to [ronan@redcircle.com].
>log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
>log4j: Setting property [conversionPattern] to [%d %-5p %c - %m%n].
--
Ceki Gülcü
For log4j documentation consider "The complete log4j manual"
ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
RE: Smtp Appender Exception on load from XML config file :
NoclassDeffoundError
Posted by Ceki Gülcü <ce...@qos.ch>.
Ronan,
The log4j-user list strips out many types of attachments and attachments
over a certain size (300 Kb or so).
If your attachment consists of just plain text, then please send it as
text. Apologies for the hassle.
At 05:35 PM 3/9/2004 +0000, you wrote:
>Ceki,
>I've attached a trace of the debug run in case this may be of any further
>help
>
>Also here is what the console appender spits out:
>
>log4j: Threshold ="null".
>log4j: Level value for root is [debug].
>log4j: root level set to DEBUG
>log4j: Class name: [org.apache.log4j.net.SMTPAppender]
>log4j: Setting property [SMTPHost] to [athena].
>log4j: Setting property [to] to [ronan@redcircle.com].
>log4j: Setting property [from] to [ronan@redcircle.com].
>log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
>log4j: Setting property [conversionPattern] to [%d %-5p %c - %m%n].
--
Ceki Gülcü
For log4j documentation consider "The complete log4j manual"
ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
RE: Smtp Appender Exception on load from XML config file : NoclassDeffoundError
Posted by Ronan Egan <eg...@eircom.net>.
Ceki,
I've attached a trace of the debug run in case this may be of any further
help
Also here is what the console appender spits out:
log4j: Threshold ="null".
log4j: Level value for root is [debug].
log4j: root level set to DEBUG
log4j: Class name: [org.apache.log4j.net.SMTPAppender]
log4j: Setting property [SMTPHost] to [athena].
log4j: Setting property [to] to [ronan@redcircle.com].
log4j: Setting property [from] to [ronan@redcircle.com].
log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
log4j: Setting property [conversionPattern] to [%d %-5p %c - %m%n].
-----Original Message-----
From: Ceki Gülcü [mailto:ceki@qos.ch]
Sent: 09 March 2004 17:19
To: Log4J Users List
Subject: RE: Smtp Appender Exception on load from XML config file :
NoclassDeffoundError
That is strange because line 593 only has a closing brace on my copy of
log4j 1.2.8 source code. And closing braces should not throw a
NoClassDefFoundError exception. Are you sure you are using 1.2.8?
At 05:13 PM 3/9/2004 +0000, you wrote:
>I'm using version 1.2.8
>
>-----Original Message-----
>From: Ceki Gülcü [mailto:ceki@qos.ch]
>Sent: 09 March 2004 17:07
>To: Log4J Users List
>Subject: RE: Smtp Appender Exception on load from XML config file :
>NoclassDeffoundError
>
>
>At 04:43 PM 3/9/2004 +0000, Ronan Egan wrote:
> >Sorry,
> >should have included it in my first email:
> >
> >Thread [main] (Suspended (exception NoClassDefFoundError))
> > DOMConfigurator.doConfigure(String, LoggerRepository) line: 593
> > DOMConfigurator.configure(String) line: 687
> > BrownLog.main(String[]) line: 35
> >
> >BrownLog is my basic example.
> >Thanks again
> >Ronan
>
>Which version of log4j is this?
>
>--
>Ceki Gülcü
>
> For log4j documentation consider "The complete log4j manual"
> ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>For additional commands, e-mail: log4j-user-help@logging.apache.org
--
Ceki Gülcü
For log4j documentation consider "The complete log4j manual"
ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org