You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Adrian Sutton <ad...@ephox.com> on 2004/03/07 22:16:17 UTC

RE: [httpclient] commons-httpclient-2.0.jar - class not found: org\apache\commons\httpclient\HttpMethod

>Problem: I am getting a runtime error when posting an XML file
>via HTTP POST to a servlet running on Tomcat 5.0.18
>Error: java.lang.NoClassDefFoundError:
org\apache\commons\httpclient\HttpMethod

Hi Diana,
Don't put commons-logging on your boot classpath it does some funky stuff
with class loaders and doesn't always work well.  Generally speaking it's a
bad idea to use the lib/ext folder for anything except overriding items
already on the boot classpath (which is what that directory is for).  Use
the -classpath argument to java to specify the classpath to use.

There is a whole heap of HttpClient documentation at
http://jakarta.apache.org/commons/httpclient which covers most areas people
have problems with.

Regards,

Adrian Sutton.



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org