Hi there Amila,
Yes I am testing via a servlet with everything running on Tomcat. I have commons-httpclient-3.1.jar in WEB-INF/lib and thought that would do the trick ;p Will add the jar you suggested and try again. Thanks! -- Kind Regards Schalk Neethling From: Amila Suriarachchi [mailto:[email protected]] Sent: 01 October 2009 04:02 PM To: [email protected] Subject: Re: java.lang.ClassNotFoundException: org.apache.http.HttpResponseFactory On Thu, Oct 1, 2009 at 7:06 PM, <[email protected]> wrote: Hi there everyone, After struggling through some strange errors in the generated stubs I have finally built my Axis2 project, however, when I try to make use of the Stub everything goes perfect until it seems to want to make a connection to the end point or reading the response. Here is the exception I get: java.lang.ClassNotFoundException: org.apache.http.HttpResponseFactory at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1387) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1233) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at org.apache.axis2.transport.http.SimpleHTTPServer.init(SimpleHTTPServer.java: 116) at org.apache.axis2.engine.ListenerManager.init(ListenerManager.java:74) at org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.j ava:161) at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:139) at za.co.afrigis.ws.stubs.SpatialSearchStub.<init>(SpatialSearchStub.java:100) Any ideas? All help much appreciated. Have you put your stub in your web app? you need to have httpcore-4.0.jar on the class path. thanks, Amila. -- Kind Regards Schalk Neethling -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/
