-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

To whom it may concern,

On 9/22/2010 2:05 PM, aravidu wrote:
> I don't know if this is directly related to "tomcat"

It is not related to Tomcat, but that's okay. Just mark the thread
"off-topic" using [OT] in the subject as I have done.

> 5. what i want is, i want to test this using a Java client with/without
> Spring. Currently it uses spring. How can i do that? I have some code
> written already.. but with this, it is not able to connect to the secure
> port. if i expose the same webservice on a non-secure port, it works fine. 
> 
> So, below listed code works for http but doesn't work for https. When I hit
> the "https" port, it complains like this. It is basically not even able to
> send the message because we need to figure out how to accept server
> certificate & produce my client certificate. 
> 
> 
> -- javax.net.ssl.SSLHandshakeException: SSLHandshakeException invoking
> https:<name>
> -- 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
> -- Exception in thread "main" javax.xml.ws.WebServiceException: Could not
> send Message.

This is because you haven't configured the web services client to use
your truststore. Note that Tomcat configures it's own HTTPS listener
with the truststore you set in the <Connector>. You web service client
ought to provide the same type of configuration.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyaTvAACgkQ9CaO5/Lv0PBNwwCgv87ljYFiSQG9kibcDbKHvxxB
of0AnjBGqOLeLSKGdxFXDXc8+5O2U/Ru
=rwOg
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to