Skip to Main Content

Java Development Tools

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!

unable to find valid certification path to requested target when deploying to weblogic server

Salman5Oct 13 2014 — edited Oct 13 2014

I am built a client web-service application in Jdeveloper 11.1.1.7 to conect to external server application. In order to connect to the external server application , I need to configure the server certificate in the trusted key store. I already did that as follow and every thing works fine from Jdeveloper.

Configure Server certificate as trusted:

System.setProperty("javax.net.ssl.trustStore",[Trust Store Path goes here]);

System.setProperty("javax.net.ssl.trustStorePassword", [Trust Store Password goes here]);



Problem now when deploying this client application on the weblogic server 10.3.5 , I am getting the this exception:


javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I did not define the certificate on weblogic trust store. I thought that it is enough to configure it in the code only.

Summery:

Is it enough to configure the certificate in the client application. So each client application will have it's own trust store file. Or I should have one common trust store (defined in weblogic console) that will be shared with all client applications that run in this sever ?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 10 2014
Added on Oct 13 2014
1 comment
653 views