logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Stauffer <jstau...@spscommerce.com>
Subject RE: log4j and Eclipse
Date Fri, 16 Jul 2004 19:55:02 GMT
Try catch(Throwable e)

James Stauffer


-----Original Message-----
From: Bill Harrelson [mailto:Bill.Harrelson@Accordare.com] 
Sent: Friday, July 16, 2004 2:52 PM
To: log4j-user@logging.apache.org
Subject: 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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message