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!

[Axis Web Service client] PKIX path build failed

843833Jun 24 2008 — edited Jun 26 2008
Dear All,
I got a task to create client for Axis-based Web Service over SSL (certificate based).
So, the trouble appeared when I tried to generate web service stub classes using <axis-wsdl2java> Ant task:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: 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
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace: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 have exported client certificate to .cer file and imported it to JDK keystore using next command line:
%JAVA_HOME%\bin\keytool -import -alias <cert-alias> -file c:\ca-cert.cer -trustcacerts -v -keystore %JAVA_HOME%\jre\lib\security\cacerts - but the error still appeared.

So, how I can point my Eclipse project to this certificate to receive an ability generate web service stub and perform web service methods calls at all?

Thanks foreword for any usefull answers/suggestions about this issue!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 24 2008
Added on Jun 24 2008
1 comment
789 views