Java &引用;WebServiceException:无法访问WSDL;及;CertificateException:PKIX路径构建失败”;访问外部WS时
访问外部SOAP Web服务时引发异常:Java &引用;WebServiceException:无法访问WSDL;及;CertificateException:PKIX路径构建失败”;访问外部WS时,java,web-services,ssl,websphere-liberty,ibm,Java,Web Services,Ssl,Websphere Liberty,Ibm,访问外部SOAP Web服务时引发异常: javax.xml.ws.WebServiceException: Failed to access the WSDL at: https://<IP>/ws/services/Webservice?wsdl. It failed with: java.security.cert.CertificateException: PKIX path building failed: sun.security.provide
javax.xml.ws.WebServiceException:
Failed to access the WSDL at:
https://<IP>/ws/services/Webservice?wsdl.
It failed with:
java.security.cert.CertificateException:
PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target.
信任这些证书的真正步骤是什么?这些步骤必须在哪里执行(应用程序、服务器、机器JVM等等)?如果这是在Liberty内部运行的,则不需要任何特殊代码。他们可能需要将远程Web服务中的证书添加到Liberty的信任存储中,如下所述:立即执行这些命令,重新启动服务器,但异常仍然存在。我还在寻找另一个解决办法。