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 keith chapman <ke...@gmail.com> on 2008/09/02 06:20:00 UTC

Re: Axiss2 1.2 - Problem with client calling WS behind HTTPS

Hi Nick,

Did you manage to resolve the issue?

Thanks,
Keith.

On Sun, Aug 17, 2008 at 11:24 PM, Nick Popov <np...@yahoo.com> wrote:

>  Hi,
>
>
>
> I have Axis2 1.2 deployed as a part of web application on Tomcat 5.
>
> Tomcat configuration have HTTP and HTTPS ports configured.
>
> The web services are accessible via HTTP and HTTPS. For HTTPS I'm using
> self-signed cert in a store.
>
> I can see the WSDL for HTTPS/HTTP in IE/FF also by using  SOAPSonar.
>
> When I configure the client URL to point to the HTTP port everything is OK.
> But when I point to the HTTPS port I have the I get the following stack
> trace:
>
>
>
> .
>
> .
>
> .
>
>
>
> Caused by: org.apache.axis2.AxisFault: The server localhost failed to
> respond with a valid HTTP response
>
>                 at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:221)
>
>                 at
> org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:452)
>
>                 at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330)
>
>                 at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
>
>                 at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:520)
>
>                 at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:500)
>
>                 at
> com.prosrm.common.wsclient.axis2.RPCServiceClient.invokeBlocking(RPCServiceClient.java:114)
>
>                 at
> com.prosrm.common.wsclient.WSClient.invoke(WSClient.java:128)
>
>                 ... 19 more
>
> Caused by: org.apache.axis2.AxisFault: The server localhost failed to
> respond with a valid HTTP response
>
>                 at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:314)
>
>                 at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:201)
>
>                 ... 26 more
>
> Caused by: org.apache.axis2.AxisFault: The server localhost failed to
> respond with a valid HTTP response
>
>                 at
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:179)
>
>                 at
> org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:73)
>
>                 at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:305)
>
>                 ... 27 more
>
> Caused by: org.apache.commons.httpclient.ProtocolException: The server
> localhost failed to respond with a valid HTTP response
>
>                 at
> org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1846)
>
>                 at
> org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
>
>                 at
> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
>
>                 at
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
>
>                 at
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
>
>                 at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
>
>                 at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
>
>                 at
> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:558)
>
>                 at
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:176)
>
>                 ... 29 more
>
>
>
> I  have the javax.net.ssl.trustStore and javax.net.ssl.trustStorePassword
> set up and I know that the certs are OK.
>
> At this point, before start building/debugging AXIS2 code I would like to
> know if any of you had the same problem.
>
>
>
> Thanks in advance for any suggestion on how to resolve that.
>
>
>
> Nick Popov
>
>
>



-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org