I am trying to generate stubs with the WSDL2Java tool

I imported my certificate into my keystore (cacerts) using 

The keytool.  

 

When I run my build file I get the following exception:

 

     [java] javax.net.ssl.SSLHandshakeException:
sun.security.validator.Validato

rException: PKIX path building failed:
sun.security.provider.certpath.SunCertPat

hBuilderException: unable to find valid certification path to requested
target

 

<?xml version="1.0" encoding="UTF-8"?>

 

<!-- ========================================= -->

<!-- xxx wsdl2java                             -->

<!-- ========================================= -->

 

<project name="xxxWSDL2Java" default="main" basedir=".">

 

 

<!--
==================================================================== -->

<!-- creates axis stubs for webservices
-->

<!--
==================================================================== -->

      <target  name="generateWebServiceStubs" depends="">               

            <java  classname="org.apache.axis.wsdl.WSDL2Java"
fork="true">

                  <classpath>

                        <pathelement location="axis.jar"/>

                        <pathelement location="axis-ant.jar" />

                        <pathelement location="jaxrpc.jar" />

                        <pathelement
location="commons-logging-1.0.4.jar" />

                        <pathelement
location="commons-discovery-0.2.jar" />

                        <pathelement location="wsdl4j-1.5.1.jar" />

                  </classpath>

                  <arg value="https://URL/"/>

                  <arg value="-o" />

                  <arg value="-Djavax.net.ssl.trustStore=c:/program
files/javajre1.6.0_01/lib/security/cacerts" />

            </java>

      </target>

 

      <target name="main" depends="generateWebServiceStubs">

            <echo>

                  Building xxx WSDL 2 Java\par

            </echo>

      </target>

</project>

 

 

Reply via email to