Andreas Hartmann wrote:
>
> Hi Frank,
>
> Frank Hamilton schrieb:
>> 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;
>
> […]
>
>> 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.
>
> that's a bit tricky. I think the easiest way is to update the
> HttpProxyGenerator to httpclient-3.0.1 in your installation. Maybe you
> could ask on the Cocoon mailing list if someone else would be interested
> in this update and willing to help you.
>
> -- Andreas
>
>
> --
> Andreas Hartmann, CTO
> BeCompany GmbH
> http://www.becompany.ch
> Tel.: +41 (0) 43 818 57 01
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
Thanks Andreas.
I try to not include proxy module in cocoon and my problem go out!
But, How can affect not include this block in my lenya publication?. I think
that not use this block, but I not sure.
Thanks.
--
View this message in context:
http://www.nabble.com/Upgrade-to-common-httpclient-3.0.1-tp22042575p22061471.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]