Michael, HttpClient is dependent on commons-logging library like many other Jakarta Commons components. You have to have commons-logging.jar on your classpath to be able to run HttpClient.
You can obtain the commons-logging.jar at the following location: http://jakarta.apache.org/commons/logging.html This should help Oleg On Thu, 2004-01-29 at 22:43, Michael Czeiszperger wrote: > I apologize for asking a user-type question on the dev list, but the > common's user list was unable to help, and I've been working on this > for two weeks with no luck. HttpClient is supposed to work within > JUnit since there's a test suite that uses JUnit. Unfortunately > whenever I try to use HttpClient within JUnit, as in this one line > instantiation: > > org.apache.commons.httpclient.HttpClient client = new > org.apache.commons.httpclient.HttpClient(); > > what happens looks like a class loader error: > > java.lang.ExceptionInInitializerError > > Caused by: org.apache.commons.logging.LogConfigurationException: > org.apache.commons.logging.LogConfigurationException: Class > org.apache.comons.logging.impl.Jdk14Logger does not implement Log > > It looks just like a class loader problem, but if HttpClient is tested > from within JUnit there wouldn't be fundamental problems like this, so > there's gotta be something wrong with what I'm doing. > > Note: > > I verified this with a couple of different JDK versions (1.4 and 1.5), > on both Windows and OSX. (1.5 isn't available for OSX yet, and so that > wasn't tested.) > > Thanks for any pointers-- I'd like to be able to use HttpClient. > > -------------------------------- > 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]
