Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 52544 invoked from network); 11 Mar 2006 18:17:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Mar 2006 18:17:28 -0000 Received: (qmail 73005 invoked by uid 500); 11 Mar 2006 18:17:23 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 72802 invoked by uid 500); 11 Mar 2006 18:17:22 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 72784 invoked by uid 99); 11 Mar 2006 18:17:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Mar 2006 10:17:22 -0800 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of robertburrelldonkin@blueyonder.co.uk designates 195.188.213.63 as permitted sender) Received: from [195.188.213.63] (HELO asmtp-out4.blueyonder.co.uk) (195.188.213.63) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Mar 2006 10:17:21 -0800 Received: from [82.38.65.173] (helo=knossos.elmet) by asmtp-out4.blueyonder.co.uk with esmtpa (Exim 4.52) id 1FI8eC-0007zN-GZ for commons-user@jakarta.apache.org; Sat, 11 Mar 2006 18:17:00 +0000 Subject: RE: Log4JLogger does not implement Log From: robert burrell donkin To: Jakarta Commons Users List In-Reply-To: <4pqht1$19kn4i1@mxip04a.cluster1.charter.net> References: <4pqht1$19kn4i1@mxip04a.cluster1.charter.net> Content-Type: text/plain Date: Sat, 11 Mar 2006 18:22:16 +0000 Message-Id: <1142101336.5040.76.camel@knossos.elmet> Mime-Version: 1.0 X-Mailer: Evolution 2.0.1-1mdk Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Sat, 2006-03-11 at 09:17 -0800, Rick Herrick wrote: > Is your classpath in your ant script (just ant, I think, on *nix, ant.bat on > Windows) getting screwed up? And/or do you have your classpath configured > correctly? Basically, you should check what classpath is getting passed > into the JVM that's starting up ant. Depending on what platform you're on, > there are different ways to do this. On Windows, just comment out all of > the "@echo off" statements in the scripts. On *nix, just change the line > ant_exec_debug=false to ant_exec_debug=true and it'll echo out the command > before it runs it. You can then look at the jars on the classpath and see > what you're getting for the Log class. > > My guess is that the Jakarta Commons Logging library, Log4J, and Java > Logging libraries are getting mixed up somehow. All of these have various > Log and Logger classes in different packages and I have had different > versions walk on each other and cause havoc. The first thing to try is to > check that your classpath is clean and has only a single version of whatever > libs you need. > > If the problem is actually occurring IN THE BUILD as opposed to just in the > ant run, then you need to check the classpath that's set up within the build > script itself. That's totally dependent on the contents of the script. there have been some unconfirmed reports of some form of subtle incompatibility between later log4j builds and commons-logging-1.0.4. if you still have problems after rick's advice then please try to latest 1.1 release candidate (http://people.apache.org/~rdonkin/commons-logging). if this still fails then please switch on the diagnostic logging and open a JCL bug report (http://issues.apache.org/bugzilla) containing the output. - robert --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org