users@glassfish.java.net

Re: Including gf-client.jar on the classpath causes WS ...

From: <forums_at_java.net>
Date: Sat, 4 May 2013 08:32:59 -0500 (CDT)

[quote=jungicz]Sorry, I don't know what is exactly wrong here but google
pointed me to stackoverflow.com [1]. From that it looks more like OpenJDK (or
linux) issue. HTH.[/quote] Thank you jungicz but that is a different sitation
where the default trust store is not available. In my case I am providing the
truststore. It did point me in the right the direction though. I think I have
now solved the GlassFish3/JDK7 truststore issue. It turns out that
System.setProperty("javax.net.ssl.trustStore") does not take affect instead
setting up a socket factory and using
HttpsURLConnection.setDefaultSSLSocketFactory(factory) works also with
GlassFish3/JDK7.

[1]
http://stackoverflow.com/questions/4764611/java-security-invalidalgorithmparameterexception-the-trustanchors-parameter-mus

--
[Message sent by forum member 'netmackan']
View Post: http://forums.java.net/node/896209