Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Certificates, https, apache axis, weblogic and confusion

843833Jan 19 2007
Hi Folks,

I have been trying this for the last couple of weeks. I want to deploy a webserivice in weblogic which shud be accessed by https.

My webservice shud be registered as https://localhost:7002/XContext/XService/XPort

For this I am using apache axis 1.4. I used the demo trust and demo key in weblogic. When I try to run AdminClient I get this error -
java org.apache.axis.client.AdminClient -lhttps://localhost:7002/TATestClient/services/AdminService deploy.wsd
d
- unable to find required classes (javax.activation.DataHandler and javax.mail.i nternet.MimeMultipart). Attachment support is disabled. Processing file deploy.wsdd Exception: AxisFault faultcode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: javax.net.ssl.SSLHandshakeException: sun.security.validator.Valida torException: No trusted certificate found faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLHandshakeExcept ion: sun.security.validator.ValidatorException: 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.b(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 91) at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.ja va:404) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138) 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:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:1792) at org.apache.axis.client.AdminClient.process(AdminClient.java:439) at org.apache.axis.client.AdminClient.process(AdminClient.java:404) at org.apache.axis.client.AdminClient.process(AdminClient.java:410) at org.apache.axis.client.AdminClient.process(AdminClient.java:320) at org.apache.axis.client.AdminClient.main(AdminClient.java:463) 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) ... 23 more {http://xml.apache.org/axis/}
Then I did some R&D, and I guess I need to set up my server with some keystores.

I did have a certificatefile PEM and a keyfile PEM. I tried using the utils.ImportPrivateKey. Now, I get this error
java utils.ImportPrivateKey mylocal.JKS mypassword myAlias mypassword TEST_CERTIFICATE.pem TEST_CA.pem JKS
Failed to import private key and certificate to the keystore file mylocal.
JKS
null

java.lang.ClassCastException
        at com.certicom.net.ssl.CerticomContextWrapper.inputPrivateKey(Unknown S
ource)
        at utils.ImportPrivateKey.importKey(ImportPrivateKey.java:55)
        at utils.ImportPrivateKey.main(ImportPrivateKey.java:26)
Now I am totally confused and I have no clue abt this. Any help will do.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 16 2007
Added on Jan 19 2007
0 comments
640 views