logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Harrelson" <Bill.Harrel...@Accordare.com>
Subject log4j and Eclipse
Date Fri, 16 Jul 2004 19:52:19 GMT
lI'm trying to get log4j running with Tomcat and Eclipse.

I have in my servlet init procedure:

Logger logger = Logger.getLogger("my.logger.name");

I have two webapps, w1 and w2, and a log4j.properties file in each 
/classes subdirectory, and the log4j jar in each /lib directory.

works fine running Tomcat stand-alone, but under Eclipse, when I 
step over the getLogger call, Eclipse never returns to my init 
procedure.  Subsequent statements are not executed, and no 
exception is thrown (and this is in a try/catch block for (Exception 

I have tried putting the jar in the Eclipse classpath explicitly, taking
them out, putting it in common/lib, and shared/lib, nothing seems to 
duplicate the behavior of stand-alone tomcat.  If I put the jar(s) in 
the Eclipse classpath explicitly, it seems to only have one repository 
context (as one might expect) and only one of the Loggers works.

Can anyone tell me what is happening and how to get around it?


William B. Harrelson
27 Ashland Street, Arlington, MA 02476
t:781-646-2241 f:781-646-2242

To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

View raw message