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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
