Hi,

this happens because you connect to a server that uses a ssl certificate
that your jsdk does not trust. To fix this, simply get the certificate,
and import it into your keystore (keytool --import --file
/somePath/someCert.ca -keystore /$JRE_HOME/lib/security/cacerts) the
default password is "changeit".

Alternatively you can create a different keystore, add the certificate
to this new keystore and tell your application to use your new keystore.

Hope this helps,
Tom

Dipty Maybhate wrote:
> Hi People
> When I try to create stubs using WSDL2Java using 1.4.0 I get the following 
> error
> 
> m/soap-api/notification?WSDL -T 1.1
> javax.net.ssl.SSLHandshakeException: Could not find trusted certificate
>         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA6275)
>         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
>         at com.sun.net.ssl.internal.ssl.ClientHandshaker.a(DashoA6275)
>         at 
> com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(DashoA6
> 75)
>         at com.sun.net.ssl.internal.ssl.Handshaker.process_record(DashoA6275)
>         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
>         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
>         at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
>         at java.io.OutputStream.write(Unknown Source)
>         at 
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275
> 
>         at sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA6275)
>         at 
> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connec
> (DashoA6275)
>         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown 
> S
> urce)
>         at 
> sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Das
> oA6275)
>         at java.net.URL.openStream(Unknown Source)
>         at org.apache.crimson.parser.InputEntity.init(Unknown Source)
>         at org.apachhe.crimson.parser.Parser2.parseInternal(Unknown Source)
>         at org.apache.crimson.parser.Parser2.parse(Unknown Source)
>         at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
>         at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(Unknown Source)
>         at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
>         at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
>         at 
> org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.ja
> a:482)
>         at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
>         at java.lang.Thread.run(Unknown Source)
> 
> Can anyone please tell me how to solve this?
> I tries running the services using 1.4.2 and 1.5.0 and they are fine.
> Is there some way I can use the stub classes in any jre versions
> without creating them again?

Reply via email to