File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Security and the fly likes Exception on setting Djavax.net.ssl.trustStore via relative path in ant junit task Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » Security
Reply Bookmark "Exception on setting Djavax.net.ssl.trustStore via relative path in ant junit task" Watch "Exception on setting Djavax.net.ssl.trustStore via relative path in ant junit task" New topic
Author

Exception on setting Djavax.net.ssl.trustStore via relative path in ant junit task

Satya Maheshwari
Ranch Hand

Joined: Jan 01, 2007
Posts: 359
Hi
For a background, I am executing my unit test using the junit task in ant. The unit test require a SSL communication with a server. For this purpose, I have to specify a jvmarg of Djavax.net.ssl.trustStoreDjavax.net.ssl.trustStore.

The problem is that, if I specify the truststore path using a relative path I get:



Strange thing is that it works absolutely fine if I give the absolute path of the truststore:

This works


This does not work



This message was edited 1 time. Last update was at by Satya Maheshwari


SPOJ ROCKS!!!
 
 
subject: Exception on setting Djavax.net.ssl.trustStore via relative path in ant junit task
 
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture