This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Security
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: 368
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




Thanks and Regards
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Exception on setting Djavax.net.ssl.trustStore via relative path in ant junit task
 
Similar Threads
Calling HttpClient executeMethod from ant task: wierd behavior
ant junitreport - producing html file with no test results
[junit] java.lang.ClassNotFoundException: UserActivityTest
generate junit reports
Testing using ANT