| SSL through RCP application [message #777472]
||Tue, 10 January 2012 10:12
| paul berzatti
Registered: January 2012
I have an rcp application that connects to a webservice through ssl.|
If I set the truststore path as a VM argument it works fine.
However, in my context, the truststore path is known only at runtime and set in the code using:
String path = "C:\\some\\path\\trust.jks";
The latter approach doesn't work. I am getting the following error:
Exception in thread "main" javax.xml.ws.WebServiceException: Failed to access the WSDL at: //websevice.sever.fr:8181/TestService/Test?wsdl. It failed with:
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target.
It can't be a certificate problem as I tested the trust.jks file and it works fine from a normal java class but not from an eclipse plugin.
Any idea why the behavior is different? It seems in a RCP application setting system properties is done differently or not possible.
Thanks for your help.
[Updated on: Tue, 10 January 2012 10:14]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01507 seconds