commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Becke <be...@u.washington.edu>
Subject Re: Logging is causing HttpClient to fail
Date Mon, 12 Jan 2004 15:08:21 GMT
Hi Michael,

I think Simon is probably right.  My guess is that commons-logging is 
probably on the classpath somewhere else, and is being loaded before 
the JUnit test is run.

Mike

On Jan 7, 2004, at 10:30 PM, Michael Czeiszperger wrote:

>
> On Jan 7, 2004, at 9:49 PM, Simon Kitching wrote:
>
>> I believe this is commonly caused by classloader problems.
>> Are you running this code in a container of some sort?
>>
>> When SimpleLog and Log are loaded by different classloaders, the
>> "instance-of" operation can report false.
>>
>
> Thanks for the help!  I'm running the code inside the IDEA development 
> environment from within a JUnit test. The sample code is being run 
> from a class file on the CLASSPATH and the HttpClient and Logger JARS 
> are both on the CLASSPATH as well. I don't see how different 
> classloaders could be involved, but that's definitely a possibility.
>
> --------------------------------
> Michael Czeiszperger
> czei at webperformanceinc dot com
> Web Performance, Inc.
> 919-845-7601
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>


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


Mime
View raw message