The Source for Java Technology Collaboration
User: Password:



Gregg Sporar

Gregg Sporar's Blog

About that trust store ...

Posted by gsporar on April 06, 2006 at 12:08 PM | Comments (0)

A long time ago I wrote a blog entry called About that proxy server that discussed how to modify the settings on the application server's JVM in order to go through a proxy server to call a web service. In that entry I mentioned how easy it is to use the NetBeans IDE to test a web service.

At NetBeans Day Madrid Andrés González asked me how to get the IDE to do that handy "test call" to a web service when the web service is accessed via HTTPS. So he had sort of the opposite problem from what I wrote about before: his application can access the web service, but the NetBeans IDE (with its Call Web Service Operation dialog) was not able to. He is specifying

-Djavax.net.ssl.trustStore
-Djavax.net.ssl.trustStorePassword

on the command line when he runs his application. It turns out the same approach will work for the NetBeans IDE (it is, after all, just a Java application :-) ). Just prepend -J to those flags and then specify them on the command line used to start the NetBeans IDE. Even easier, just modify the netbeans.conf file so that the values are always specified when the IDE starts - for more information on netbeans.conf see this entry in the NetBeans FAQ.

Thanks to Lukas Jungmann for the tip.

Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first)





Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds