Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 18977 invoked from network); 21 Jun 2005 23:06:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Jun 2005 23:06:53 -0000 Received: (qmail 48728 invoked by uid 500); 21 Jun 2005 23:06:47 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 48683 invoked by uid 500); 21 Jun 2005 23:06:47 -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 48665 invoked by uid 99); 21 Jun 2005 23:06:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jun 2005 16:06:46 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jason.burrows@gmail.com designates 64.233.184.192 as permitted sender) Received: from [64.233.184.192] (HELO wproxy.gmail.com) (64.233.184.192) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jun 2005 16:06:48 -0700 Received: by wproxy.gmail.com with SMTP id 58so4613wri for ; Tue, 21 Jun 2005 16:06:45 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=c922GT5F3iNCa/EaqyZ5bYhrccEO51PydA3ICXqRHKr/TSPOp2gC0ELHX6NxY2SImatlE+zCAcYxdcVG36g0u+6OC04e90mpgHox7qzl+LiFjr9mgpINqI6pRv15VRR2pgbmErxOswDZyynbMS2kIvVJ4katgxDXHnrMK7EvqB0= Received: by 10.54.53.39 with SMTP id b39mr69457wra; Tue, 21 Jun 2005 16:06:45 -0700 (PDT) Received: by 10.54.65.6 with HTTP; Tue, 21 Jun 2005 16:06:44 -0700 (PDT) Message-ID: Date: Tue, 21 Jun 2005 16:06:44 -0700 From: Jason Burrows Reply-To: Jason Burrows To: skitching@apache.org Subject: Re: [logging] Always get a LogConfigurationException... Cc: commons-user@jakarta.apache.org In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1119316278.3785.36.camel@localhost.localdomain> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N So I can also run this test correctly (without the commons-logging source, just using the jar file) if I run it directly from the command line, and not from within eclipse. Everything else works fine from within Eclipse (using tons of things - including other parts of the commons collection). Can anyone think of any reason I'd be getting my problem only when running from within Eclipse? I can be sure that I'm using the same jvm in either case (made sure by fully qualifying the path to java.exe when testing from the command line). On 6/21/05, Jason Burrows wrote: > If I import the source directly into my project then I don't get this > issue for my simple test (which makes it really hard to debug), but > this isn't a reasonable solution for the real project I am working on. >=20 > Does that information help at all? I can't really think of any good > reason why this would be the case, unless there is some problem using > the binaries with Java 5? >=20 > Thanks > Jason >=20 >=20 > On 6/21/05, Jason Burrows wrote: > > > It would appear that the problem originates with ling 374 of > > > LogFactoryImpl (release 1.0.4) which is this: > > > logInterface =3D this.getClass().getClassLoader().loadClass > > > (LOG_INTERFACE); > > > > > > As "this" cannot be null, and neither can this.getClass(), I would gu= ess > > > that getClassLoader is returning null. > > > > > > But that should only ever happen in JVM1.1, or in embedded systems wh= ere > > > everything is being loaded via the bootclassloader. > > > > > > You aren't developing an embedded system are you? > > > > > > > No - not an embedded system. Just running with JDK 1.5.0 with nothing > > special or interesting being done to it. In fact, if I add a test to > > check that out: > > > > if ( this.getClass().getClassLoader() =3D=3D null){...} else {...} > > > > I can see that getClassLoader is not returning null (for my test class = anyway). > > > > Thanks > > Jason > > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org