Even if DOMConfigurator is fixed to use the TCL, there needs to be
a seperation between the bootstrap configuration and the final server
configuration because when the log4j.xml descriptor is read by the
Log4jService the only classes available are the bootstrap classes:

log4j: Attaching appender named [ErrorNotifications] to appender named
[ASYNCH].

log4j: Class name: [org.apache.log4j.net.SMTPAppender]
[WARN,BasicMBeanRegistry] preRegister() failed for null:
java.lang.NoClassDefFoundError: javax/mail/Multipart
        at java.lang.Class.newInstance0(Native Method)
        at java.lang.Class.newInstance(Class.java:232)
        at
org.jboss.logging.DOMConfigurator.parseAppender(DOMConfigurator.java:162)
        at
org.jboss.logging.DOMConfigurator.findAppenderByReference(DOMConfigurator.ja
va:146)
        at
org.jboss.logging.DOMConfigurator.parseAppender(DOMConfigurator.java:199)
        at
org.jboss.logging.DOMConfigurator.findAppenderByReference(DOMConfigurator.ja
va:146)
        at
org.jboss.logging.DOMConfigurator.parseChildrenOfCategoryElement(DOMConfigur
ator.java:365)
        at
org.jboss.logging.DOMConfigurator.parseRoot(DOMConfigurator.java:334)

        at org.jboss.logging.DOMConfigurator.parse(DOMConfigurator.java:699)
        at
org.jboss.logging.DOMConfigurator.doConfigure(DOMConfigurator.java:599)
        at
org.jboss.logging.DOMConfigurator.doConfigure(DOMConfigurator.java:551)
        at
org.jboss.logging.DOMConfigurator.configure(DOMConfigurator.java:621)
        at
org.jboss.logging.Log4jService$URLWatchTimerTask.reconfigure(Log4jService.ja
va:487)
        at
org.jboss.logging.Log4jService$URLWatchTimerTask.run(Log4jService.java:436)
        at
org.jboss.logging.Log4jService.startService(Log4jService.java:280)
        at
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
        at org.jboss.logging.Log4jService.preRegister(Log4jService.java:361)
        at
org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegi
stry.java:197)
        at
org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:949)
        at
org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:247)
        at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:263)
        at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
        at org.jboss.Main.boot(Main.java:142)
        at org.jboss.Main$1.run(Main.java:375)
        at java.lang.Thread.run(Thread.java:479)
[INFO,Log4jService] Registration is not done -> destroy

xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx
----- Original Message -----
From: "Scott M Stark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 21, 2002 11:16 PM
Subject: [JBoss-dev] log4j.jar appender loading


> Inclusion of log4j.jar in the ServerLoader bootclasspath breaks
> loading of unbundled classes used by appenders such as the JavaMail
> classes since the DOMConfigurator used Class.forName to load appenders,
> etc. Either the class loader created by the ServerLoader needs to be a
> custom
> subclass that dynamcically integrates with the UCL loader repository when
> available, or we need to subclass org.apache.log4j.xml.DOMConfigurator and
> override the parseXXX methods to use the TCL.
>



_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to