Alex,
I mentioned the JAVA OPT in wsdl2java.bat like this "%JAVA_HOME%\bin\java" -Xmx128M -cp "%CXF_JAR%;%SUN_TOOL_PATH%;%CLASSPATH%" -Djavax.net.ssl.trustStore=c:/Users/sabbir/.keystore -Djavax.net.ssl.trustStorePassword=xmms1234 -Djavax.net.ssl.keyStoreType=pkcs12 -Djavax.net.ssl.keyStore=private-tomcat.p12 -Djavax.net.ssl.keyStorePassword=private -Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties" org.apache.cxf.tools.wsdlto.WSDLToJava %* I added the bold part. But still Im getting the error... WSDLToJava Error: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create wsdl definition from : https://localhost:8443/pr/services/ser1?wsdl Caused by : WSDLException: faultCode=PARSER_ERROR: Problem parsing 'https://localhost:8443/pr/services/ser1?wsdl'.: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl) Alex-577 wrote: > > try via java system properties > > System.setProperty("javax.net.ssl.keyStoreType", "pkcs12"); > System.setProperty("javax.net.ssl.keyStore", "PRIVATEKEY.p12"); > System.setProperty("javax.net.ssl.keyStorePassword", "PASSWORD"); > > or via java opts > -Djavax.net.ssl.trustStore=trusted-ca-certs.jks > -Djavax.net.ssl.trustStorePassword=keystore-password > -Djavax.net.ssl.keyStoreType=pkcs12 > -Djavax.net.ssl.keyStore=private-key.p12 > -Djavax.net.ssl.keyStorePassword=password > > Alex > > Jonathan Bricker schrieb: >> Is there a setting to point WSDL2Java to a cert store for a WSDL that is >> on >> a HTTPS connection? >> >> >> WSDLToJava Error: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to >> create >> wsdl definition from : file:/D:/JavaWS/JavaTrust1/src/java/trust.wsdl >> Caused by : WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema): >> faultCode=PARSER_ERROR: Problem parsing ' >> https://ice-w2k8poc1.rfp.icepoc.com/adfs/services/trust/mex?xsd=xsd1'.: >> 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 >> >> > > > -- View this message in context: http://old.nabble.com/WSDL2Java---keystores-tp27261504p28358629.html Sent from the cxf-user mailing list archive at Nabble.com.