Hi, I created my own appender that logging data to another ejb using JNDI. My 
question is, how can I add my external jar package to log4j.xml, beause when I 
do this:


  | <appender name="xxxx" class="logg.to.MyClass ">
  | 
  |       <layout class="org.apache.log4j.PatternLayout">
  | 
  |          <param name="ConversionPattern" value="%t %d %x %-5p [%c.%M] 
%m%n"/>
  |  
  |       </layout>
  |    </appender>
  | 
  |    <category name="ptk.cv.scoring">
  |      <priority value="INFO" />
  |      <appender-ref ref="xxxx"/>
  |    </category>
  | 

I get the error:

?Could not create an Appender. Reported error follows.

java.lang.ClassNotFoundException: logg.to.MyClass?

I added jar with my appender class in: jboss/server/default/lib

 

I put this appender in to log4j.xml because I have to be able change logg level 
dynamicly through jmx-console.

I?m using jboss-4.0.5.GA and sdk_1.4.2_13.

Thanks for any help.

Lidon.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032741#4032741

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032741
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to