Which version of log4j is this? Is it 1.2.8 or cvs head?


At 02:36 PM 8/25/2003 -0500, you wrote:
I'm seeing an issue when I have more than one webapp's log4j.xml using the ServletContextLogAppender for a logger. I'm attaching the relevant part of the log file. I included Log4j's own debugging.

Anyone know what this is happening? I think I know where it is coming from. DomConfigurator#parseAppender() seems to return null, but I'm not sure why?

Note that log4j.jar and log4j-sandbox.jar are in CATALINA_HOME/common/lib and shared/lib respectively (the jars can see each other just fine even in the the separate lib directories). I'm using the ContextJNDISelector to manage logger repositories. The other appenders work just fine. Only if I add an <appender-ref> referencing the named ServletContextLogAppender in the second app being configured (and presumably any additional apps) do I get the stacktrace.

Jake

7328 [main] INFO org.apache.catalina.core.StandardHostDeployer - Processing Context configuration file URL file:D:\Java\Apache\Jakarta\tomcat-5.0.9\conf\Catalina\localhost\Barracuda2.xml
log4j:WARN No appenders could be found for logger (tomcat.localhost./Barracuda2.Context).
log4j:WARN Please initialize the log4j system properly.
log4j: Threshold ="debug".
log4j: Retreiving an instance of org.apache.log4j.Logger.
log4j: Setting [test.org.enhydra.barracuda] additivity to [false].
log4j: Level value for test.org.enhydra.barracuda is [off].
log4j: test.org.enhydra.barracuda level set to OFF
log4j: Class name: [org.apache.log4j.FileAppender]
log4j: Setting property [file] to [D:\Java\Apache\Jakarta\tomcat-5.0.9\webapps\Barracuda2\WEB-INF\logs/test.log].
log4j: Setting property [append] to [true].
log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
log4j: Setting property [conversionPattern] to [%-4r [%t] %-5p %c %x - %m%n].

[snip]



-- Ceki For log4j documentation consider "The complete log4j manual" ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to