Log4j problem
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, December 17, 2002 02:54 PM

On a tomcat server I have several webapp which use log4j. I placed so the log4j librairy in a common directory. On the other hand every webapp has its file lo4j.properties in the repertoire class of the webapp and nevertheless I have the warn " no appenders could be found for logger ". I don't understand, I need help !!!!!

Re: Log4j problem

Posted By:   Mark_Womack  
Posted On:   Friday, January 3, 2003 05:05 PM

You may want to look at this url, if you haven't already:

http://jakarta.apache.org/log4j/docs/manual.html

and search for "Default Initialization under Tomcat".

hth,
-Mark

Re: Log4j problem

Posted By:   Matthew_McNeely  
Posted On:   Tuesday, December 17, 2002 04:39 PM

Saint Jevin,

I'm not sure if this is the problem or not, but log4j uses some static objects that can cause problems between webapps that are using the same jar from the common lib directory. Try moving the log4j jar to the per-instance lib directory.

For example, if you have application foo and bar:


{tomcathome}/webapps/foo/WEB-INF/lib/log4j-core.jar
{tomcathome}/webapps/bar/WEB-INF/lib/log4j-core.jar
About | Sitemap | Contact