1 Reply Latest reply on Jan 23, 2009 12:58 PM by new2interop

    unable to find valid certifcate path to requested target

    new2interop

       

      Does anyone know what is causing this issue, I have  added the cert to cacert with in Java_Home and have tested it with InstallCertUtility, everything seems to be ok.

       

      D:\apache-cxf\source>wsdl2java https://localhost/ZTestWCFService/TestService.svc?wsdl

       

       

      WSDLToJava Error: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create wsdl definition from : https://localhost/ZTestWCFService/TestService.svc?wsdl

      Caused by : WSDLException: faultCode=PARSER_ERROR: Problem parsing 'https://localhost/ZTestWCFService/TestService.svc?wsdl'.: 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

       

       

       

      thanks

       

       

        • 1. Re: unable to find valid certifcate path to requested target
          new2interop

          Never mind  I found the issue, I had fat fingered the cacerts to cacert... so that fixed some of the issues. Had to add following to the wsdl2java.bat to make it run

           

          -Djavax.net.ssl.trustStore="D:\Program Files\Java\jre1.6.0_06\lib\security\cacert" -Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties" org.apache.cxf.tools.wsdlto.WSDLToJava

           

          Onto the next self inflicted issue

           

          thanks