> From: Dan Armbrust [mailto:daniel.armbrust.l...@gmail.com]
> Subject: Re: How to debug Error: listenerStart?
> 
> my webapp dynamically configures log4j with a pattern like this:
> 
> LogManager.resetConfiguration();
> PropertyConfigurator.configure(properties);

I think that's too late - the logger needs to be ready first thing so that 
webapp-related log entries can be created during deployment.

> INFO: Deploying web application archive ap.war
> log4j:WARN No appenders could be found for logger
> (org.apache.commons.digester.Digester).
> log4j:WARN Please initialize the log4j system properly.

Those are indications that usage of the logger has already commenced.

> So it would appear that something within my webapp tried to 
> log using log4j

I suspect it was Tomcat code using your logger, not your webapp code.

> What would I need to do to make log4j within my webapp 
> have a temporary configuration which would log to the 
> console until the point when my webapp executes it's 
> dynamic configuration?

Create a log4j.xml or log4j.properties file in WEB-INF/classes.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to