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 venkatesh <ve...@lasonindia.com> on 2005/04/04 13:34:19 UTC

Error using webservice over SSL

Hi Users,
  I'm using Axis1.2 RC2 to connect to SSL webservice, which is written in .NET.  When i tried to connect to the webservice from the code, i'm getting this error

Exception: No trusted certificate found
        at org.apache.axis.AxisFault.makeFault(AxisFault.java:98)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:96)
        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:144)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2688)
        at org.apache.axis.client.Call.invoke(Call.java:2671)
        at org.apache.axis.client.Call.invoke(Call.java:2357)
        at org.apache.axis.client.Call.invoke(Call.java:2280)
        at org.apache.axis.client.Call.invoke(Call.java:1741)
        at com.lason.cp.wsdl.ChameleonSoapStub.login(Unknown Source)
        ... 4 more
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.Validator
Exception: No trusted certificate found
        at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Sou
rce)
        at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFac
tory.java:186)
        at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:1
29)
        at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.ja
va:389)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:87)
        ... 14 more
Caused by: sun.security.validator.ValidatorException: No trusted certificate fou
nd
        at sun.security.validator.SimpleValidator.buildTrustedChain(Unknown Sour
ce)
        at sun.security.validator.SimpleValidator.engineValidate(Unknown Source)

        at sun.security.validator.Validator.validate(Unknown Source)
        at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(
Unknown Source)
        at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(
Unknown Source)
        ... 24 more


I don't know how to overcome from this error. Can u help me to solve this error.......

Regards,
Venkatesh P.