Hi,

I am trying to add client web capability, to my lenya publication, but I
have a problem:

 I am use commons-httpclient-3.0.1.jar for de WS-client but my lenya use the
jar commons-httpclient-2.0.2.jar in \externals\cocoon_2_1_x\lib\core. When I
try to call the web service:

    GreturexWsServiciosStub ws=new GreturexWsServiciosStub();
    ws.getAllCountry();

this exception is throw:


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.initializeTimeouts(AbstractHTTPSender.java:441)
        at
org.apache.axis2.transport.http.AbstractHTTPSender.getHttpClient(AbstractHTTPSender.java:496)
        at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:158)
        at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
        at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)
        at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
        at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)
        at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
        at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
        at
servicios.ws.greturex.cie.org.GreturexWsServiciosStub.buscarTodosServicios(GreturexWsServiciosStub.java:2022)
        at
org.apache.lenya.cms.greturexform.accesoSW.AccesoSW.main(AccesoSW.java:107)


I think that two libraries is conflicted.

I try to change the library commons-httpclient-2.0.2.jar for
commons-httpclient-3.0.1.jar in \externals\cocoon_2_1_x\lib\core but the
class
externals\cocoon_2_1_x\src\blocks\proxy\java\org\apache\cocoon\generation\HttpProxyGenerator.java
throw and error when compile because PostMethod class not have the method
getRequestBodyAsString() in commons-httpclient-3.0.1.jar.


Any ideas of how solve this.

Thanks.

-- 
View this message in context: 
http://www.nabble.com/Upgrade-to-common-httpclient-3.0.1-tp22042575p22042575.html
Sent from the Lenya - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to