commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Kitching <si...@ecnetwork.co.nz>
Subject Re: Logging is causing HttpClient to fail
Date Thu, 08 Jan 2004 02:49:28 GMT
Hi Michael,

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.

Regards,

Simon

On Thu, 2004-01-08 at 15:40, Michael Czeiszperger wrote:
> I'm evaluating HttpClient, and am having trouble getting even the 
> trivial sample code to work. I am able to compile the program, but when 
> it runs I get an error from the logging mechanism: 
> LogConfigurationException: Class 
> org.apache.commons.logging.impl.Jdk14Logger does not implement Log.
> 
> 
> I've tried following all of the suggested logging settings, but each 
> attempt gives the error:
> 
> Class X does not implement "Log", where X could be SimpleLog or NoOpLog.
> 
> I searched the list archives but couldn't find any mention of these 
> errors. I've tried adjusting the CLASSPATH to place the logging and 
> HttpClient libs in different orders, but that doesn't seem to make a 
> difference.
> 
> Any suggestions would be appreciated.




---------------------------------------------------------------------
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