Using JDK 7 instead gave a different error. It seems like the trust store
setting is not working as I am now getting
"*java.security.InvalidAlgorithmParameterException: the trustAnchors
parameter must be non-empty.*" even though the code does:
System.setProperty("javax.net.ssl.trustStore",
"full-path-to-truststore.jks");
System.setProperty("javax.net.ssl.trustStorePassword", "changeit"); Removing
the GlassFish jars from the classpath and the code works, however as said I
need to also be able to do EJB calls... :(
--
[Message sent by forum member 'netmackan']
View Post: http://forums.java.net/node/896209