tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: [OT] Client to communicate to SSL WebServices on tomcat
Date Wed, 22 Sep 2010 18:46:08 GMT
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. 
> -- SSLHandshakeException invoking
> https:<name>
> --
> PKIX path building failed:
> unable to find
> valid certification path to requested target
> -- Exception in thread "main" 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
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message