You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Bill Harrelson <Bi...@Accordare.com> on 2004/07/16 21:52:19 UTC

log4j and Eclipse

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 
e)).

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?

Thanks,

Bill
-- 
William B. Harrelson
President
Accordare
27 Ashland Street, Arlington, MA 02476
t:781-646-2241 f:781-646-2242
Bill.Harrelson@Accordare.com


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