axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas" <dava...@gmail.com>
Subject Re: WSDL2Java for HTTPS
Date Fri, 22 Jun 2007 16:21:59 GMT
http://ant.apache.org/manual/CoreTasks/java.html

On 6/22/07, Mark Babcock <markb@cormineid.com> wrote:
> How do I use the JVM arg for javax.net.ssl.trustStore?
>
> -----Original Message-----
> From: Davanum Srinivas [mailto:davanum@gmail.com]
> Sent: Friday, June 22, 2007 11:37 AM
> To: axis-user@ws.apache.org
> Subject: Re: WSDL2Java for HTTPS
>
> try using <jvmarg> for the javax.net.ssl.trustStore
>
> On 6/22/07, Mark Babcock <markb@cormineid.com> wrote:
> >
> >
> >
> >
> > 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>
> >
> >
> >
> >
>
>
> --
> Davanum Srinivas :: http://davanum.wordpress.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Davanum Srinivas :: http://davanum.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message