JAAS config file in jar root through webstart

I'm tring to put my jaas.config file in my application's jar that is downloaded through webstart because I don't want to have the file on the server anymore.

I keep getting a security exception saying it cannot locate the file. What is the correct syntax to specify that the jaas config file is at the root of the classpath?

I would have expected the following to work, but apparently not

<property name="java.security.auth.login.config" value="/jaas.config"/>

Note, I also tried:

<property name="java.security.auth.login.config" value="jaas.config"/>

[703 byte] By [MisterFlibblea] at [2007-10-2 9:23:21]
# 1

Note it works fine for me by passing in a URL path:

<property name="java.security.auth.login.config" value="http://myUrl/jaas.config"/>

How can I make this work so my jaas config file is located in my jar and not on a webserver?

MisterFlibblea at 2007-7-16 23:30:16 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 2
use it with a classloader like:System.setProperty("java.security.auth.login.config", this.getClass().getClassLoader().getResource("jaas.config").toString());
bernd23a at 2007-7-16 23:30:16 > top of Java-index,Security,Other Security APIs, Tools, and Issues...