You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Ryan Hoegg <rh...@isisnetworks.net> on 2003/05/12 19:08:03 UTC
Re: HttpClient needs commons-logging on Solaris with iPlanet 4.1,
I think that somehow on Windows you are having two different
Classloaders load the Log interface and the Jdk14Logger class. I think
adding it to the WAR in WEB-INF/lib is the "right" solution, but since
Tomcat already knows about the commons-logging classes you may still
have problems. Cocoon had to tell users to copy several JARs into
tomcat's endorsed directory to get past a similar problem iirc.
Hope this helps,
--
Ryan Hoegg
ISIS Networks
http://www.isisnetworks.net
Karr, David wrote:
>My biggest quandary with this problem is figuring out which list I
>should write this on, httpclient, commons, or tomcat.
>
>I have an application that I originally built with Tomcat 4.1.18 on
>WinXP, using JDK 1.2.2. It uses HttpClient. When I compiled it all and
>deployed it, it worked fine, and did not seem to require
>commons-logging, perhaps because Tomcat already uses commons-logging.
>
>However, when I deployed it to iPlanet 4.1 on Solaris (also using JDK
>1.2.2), I found it was getting the following exception inside the
>HttpConnection constructor:
>
>java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
>
>So, I put "commons-logging.jar" into the iPlanet classpath, and then
>this worked fine. Since I didn't like having a jar file required on one
>platform and not used on another, I decided to try to put
>commons-logging into the Tomcat deployment, just so I could verify I was
>using the same jars. The application compiled fine with
>"commons-logging.jar" in the application, but when I deployed it, I got
>this:
>
>-------------------
>Caused by: org.apache.commons.logging.LogConfigurationException:
>org.apache.commons.logging.LogConfigurationException:
>org.apache.commons.logging.LogConfigurationException: Class
>org.apache.commons.logging.impl.Jdk14Logger does not implement Log
> at
>org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp
>l.java:509)
> at
>org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
>l.java:285)
> at
>org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
>l.java:255)
> at
>org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
> at
>org.apache.commons.httpclient.HttpConnection.<clinit>(HttpConnection.jav
>a:1295)
>-------------------
>
>Note that I'm using JDK 1.2.2.
>
>So, I'm at a point where I have to include "commons-logging.jar" when I
>deploy to Solaris/iPlanet, but I CAN'T include it on Windows/Tomcat.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org
>