Hello All,
Here is the high level of the problem......
I created a HTTP JAX-WS 2.0 server and client in Netbeans 5 based on a
modified
http://www.netbeans.org/kb/50/jaxws20.html. Everything works
like a champ!
- create JAX-WS 2.0 web service in Netebans 5
- put web service war file in a Tomcat 5.5.12 container outside
of netbeans
- created JAX-WS 2.0 web service client in Netbeans 5
- during precompile I generate all the code from the URL
wsdl="
http://servername:8080/JAX-WS20Project/test?wsdl"
- then comile the main driver
- then I run the client in Netbeans that hits the HTTP Tomcat
5.5.12 and no problems!
BUT then I try to do the same thing using a HTTPS Tomcat like so.....
Added the following to netbeans.conf and different variations tried with
no luck.....
netbeans_default_options="-J-Xms256m -J-Xmx512m
-J-XX:PermSize=32m -J-XX:MaxPermSize=96m -J-Xverify:none
-J-Dapple.laf.useScreenMenuBar=true
-Djavax.net.ssl.keyStore=/absolute_path_to_keystore/keystore
-Djavax.net.ssl.keyStorePassword=tomcat
-Djavax.net.ssl.trustStore=/absolute_path_to_keystore/keystore
-Djavax.net.ssl.trustStorePassword=tomcat"
And got errors on the command line starting the above options were
ignored
Then I added........
-Djavax.net.ssl.keyStore=/absolute_path_to_keystore/keystore
-Djavax.net.ssl.keyStorePassword=tomcat
-Djavax.net.ssl.trustStore=/absolute_path_to_keystore/keystore
-Djavax.net.ssl.trustStorePassword=tomcat
To the Netbeans web service client
properties->build->compiling->additional compiler options and also
properties->run->vm options with no luck
- create JAX-WS 2.0 web service in Netebans 5
- put web service war file in a Tomcat 5.5.12 HTTPS container
outside of netbeans
- attempt to create JAX-WS 2.0 web service client in Netbeans 5
against the URL wsdl="
https://servername:8443/JAX-WS20Project/test?wsdl"
and get this.......
init:
deps-jar:
running wsimport
error: failed to parse document at
"
https://servername:8443/JAX-WS20Project/test?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
compile:
BUILD SUCCESSFUL (total time: 1 second)
Where and how do I setup Netebans/JAX-WS so that it can see and trust
the self signed certificate I created on my Tomcat 5.5.12 and let me
generate the needed code to run the client?
Thanks much!