Chris,

Looks suspiciously like a ClassLoader problem, and not directly related to HttpClient. I suggest looking on the net for compatibility issues with JRun/ColdFusion MX and commons-logging.

Also see the logging instructions for HttpClient here: http://jakarta.apache.org/commons/httpclient/logging.html, although if you're using Log4J, you'll have to adopt the instructions as appropriate. I suggest searching the HttpClient email archives (http://nagoya.apache.org/eyebrowse/SummarizeList?listId=128) for Log4J to see how other people have solved this.

-Eric Johnson

Lomvardias Christopher wrote:

When attempting to run the example source code at the bottom of
http://jakarta.apache.org/commons/httpclient/tutorial.html within
JRun/ColdFusion MX, I get the following error:

[1]org.apache.commons.logging.LogConfigurationException:
java.lang.ClassCastException
        at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:558)
        at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:345)
        at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390)
        at
org.apache.commons.httpclient.HttpClient.<clinit>(HttpClient.java:100)

I should note that JRun/ColdFusion MX uses Log4J, so I assume there is some
interaction going on here that is causing the problem.

I'd welcome any suggestions.

Thanks,

Chris







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to