File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes JBoss webservice & ssl Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss webservice & ssl" Watch "JBoss webservice & ssl" New topic

JBoss webservice & ssl

Aodhan Hoffman
Ranch Hand

Joined: May 21, 2004
Posts: 35

[java] Caused by: PKIX path building failed: unable to find valid certification path to requested target

[java] Caused by: PKIX path building failed: sun.sec
urity.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requ
ested target

STP - define what techs are core to the NMT

I am running JBoss 4.0.5 w/ JbossWS 1.2.1.

I have enabled the SSL connector and am able to access the WSDL for my web service using a browser on port 8443 with a certificate I created using keytool.

The client works if I provide it the old http/port 80 URL in it's local WSDL. If I try to aim it at https/port 8443, the client dies with the following error:

<soap:address location="http://localhost:8080/NetworkService/NLS"/> <-- works
<soap:address location="https://localhost:8443/NetworkService/NLS"/> <-- doesn't work

I have imported the server cert into a keystore in the client's bin directory. I configured the client to use the keystore ( I believe ) by using jboss-wsse-client.xml in the client's bin directory.


-------<br /> Aodhan H - Ad Astra Per Aspera<br /> -------
I agree. Here's the link:
subject: JBoss webservice & ssl
It's not a secret anymore!