tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mayne, Peter" <PeterMa...@ap.spherion.com>
Subject RE: Log4j problem mixing 2 apps
Date Sun, 29 Jun 2003 23:51:37 GMT
Don't put log4j in the classpath for Eclipse. Instead, right-click on your
project, select Properties, and goto Java Build Path. Add the log4j library
to the build path.

PJDM
-- 
Peter Mayne
Technology Consultant
Spherion Technology Solutions
Level 1, 243 Northbourne Avenue, Lyneham, ACT, 2602
T: 61 2 62689727  F: 61 2 62689777

> -----Original Message-----
> From: Donie Kelly [mailto:donie.kelly@tecnomen.ie] 
> Sent: Friday, 27 June 2003 7:47 PM
> To: 'Tomcat Users List'
> Subject: RE: Log4j problem mixing 2 apps
> 
> 
> OK, I think I see the problem but I'm not sure how to fix.
> 
> I'm using eclipse to debug and run tomcat and as it uses 
> log4j to log in the
> webapps I have to put log4j in the classpath for eclipse so 
> that the code
> will compile. However, I think this is causing a problem when the
> application runs as the log4j jar is loaded by eclipse and 
> therefore it
> seems to use that version instead of the version in WEB-INF/lib.
> 
> If I run the application from the command line it works fine.
> 
> Anybody got any idea on how I can work in Eclipse (or any IDE) and get
> around this loading problem?
> 
> Thanks
> Donie

The information contained in this email and any attachments to it:

(a) may be confidential and if you are not the intended recipient, any interference with,

use, disclosure or copying of this material is unauthorised and prohibited; and

(b) may contain personal information of the recipient and/or the sender as defined 
under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to 
collect, hold and use such information and any personal information contained in a 
response to this email, for any reasonable purpose in the ordinary course of 
Spherion's 
business, including forwarding this email internally or disclosing it to a third party. All

personal information collected by Spherion will be handled in accordance with 
Spherion's Privacy Policy. If you have received this email in error, please notify the 
sender and delete it.

(c) you agree not to employ or arrange employment for any candidate(s) supplied in 
this email and any attachments without first entering into a contractual agreement with 
Spherion. You further agree not to divulge any information contained in this document 
to any person(s) or entities without the express permission of Spherion.



Mime
View raw message