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/10 17:06:57 UTC

RE: Smtp Appender Exception on load from XML config file : NoclassDeffoundError

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