I've seen this error on the client side due to a different version of
commons-httpclient being in a higher classloader, in my case the
jbossall-client has a different version of this class.  Make sure the
client is loading the correct version of commons-http client.

HTH,
Robert
http://www.braziloutsource.com/

On 6/30/06, Nicolas Urien <[EMAIL PROTECTED]> wrote:


I have deployed an axis aar2 archive file on tomcat 5.0.

I get this exception when launching the client (it uses the axis2 generated
stubs):



Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.commons.httpclient.HttpConnectionManager.getParams()Lorg/apache/commons/httpclient/params/HttpConnectionManagerParams;
    at
org.apache.axis2.transport.http.AbstractHTTPSender.getHttpClient(AbstractHTTPSender.java:509)
    at
org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:36)
    at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:299)
    at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:207)
    at
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:589)
    at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:328)
    at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279)
    at
fr.acoss.ancre.acces.dao.pojo.PojoDaoStub.countBySiret(PojoDaoStub.java:4054)
    at
fr.acoss.ancre.acces.dao.pojo.Client.main(Client.java:18)



Any help is greatly appreciated. Many thanks in advance!




Here is the client code:

package fr.acoss.ancre.acces.dao.pojo;

import
fr.acoss.ancre.acces.dao.pojo.PojoDaoStub.CountBySiretResponse;;



public class Client {

    public static void main(String[] args) throws Exception {

        PojoDaoStub stub = new PojoDaoStub();

        //Create the request
        PojoDaoStub.CountBySiret request = new PojoDaoStub.CountBySiret();
        request.setParam0("17080431400145");

        //Invoke the service
        CountBySiretResponse response = stub.countBySiret(request);

        System.out.println("Response : " + response.get_return());
    }

}






Attached is the wsdl file.


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




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

Reply via email to