You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Sc...@afrigis.co.za on 2009/10/01 16:24:24 UTC

RE: org.apache.axis2.databinding.ADBException WAS java.lang.ClassNotFoundException: org.apache.http.HttpResponseFactory

Hi there,

 

I have seen some information on the this new issue and it seems to be
related to a bug. The httpcore jar solved my previous problem but now I am
getting:

 

org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
Unexpected subelement Results

      at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)

 

--

Kind Regards

Schalk Neethling

 

From: Amila Suriarachchi [mailto:amilasuriarachchi@gmail.com] 
Sent: 01 October 2009 04:02 PM
To: axis-user@ws.apache.org
Subject: Re: java.lang.ClassNotFoundException:
org.apache.http.HttpResponseFactory

 

 

On Thu, Oct 1, 2009 at 7:06 PM, <Sc...@afrigis.co.za> 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/


Re: org.apache.axis2.databinding.ADBException WAS java.lang.ClassNotFoundException: org.apache.http.HttpResponseFactory

Posted by Amila Suriarachchi <am...@gmail.com>.
On Thu, Oct 1, 2009 at 7:54 PM, <Sc...@afrigis.co.za> wrote:

>  Hi there,
>
>
>
> I have seen some information on the this new issue and it seems to be
> related to a bug. The httpcore jar solved my previous problem but now I am
> getting:
>

check the response message you get is valid according to the wsdl to which
you generated the code.
you may use tcpmon[1] to check the response.

thanks,
Amila.

[1] http://ws.apache.org/commons/tcpmon/download.cgi

>
>
> org.apache.axis2.AxisFault: *org.apache.axis2.databinding.ADBException*:
> Unexpected subelement Results
>
>       at org.apache.axis2.AxisFault.makeFault(*AxisFault.java:430*)
>
>
>
> --
>
> Kind Regards
>
> Schalk Neethling
>
>
>
> *From:* Amila Suriarachchi [mailto:amilasuriarachchi@gmail.com]
> *Sent:* 01 October 2009 04:02 PM
> *To:* axis-user@ws.apache.org
> *Subject:* Re: java.lang.ClassNotFoundException:
> org.apache.http.HttpResponseFactory
>
>
>
>
>
> On Thu, Oct 1, 2009 at 7:06 PM, <Sc...@afrigis.co.za> 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/
>



-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/