Hello everybody,
I have a problem with a Java WS application that use Jaas authentication through Jboss AS.
If I start the application from the command line (java -jar myApp.jar) it works just fine.
But if I load the application with the JNLP file I get an error like:
The application needs to access a java.policy and a jaas.config files that are located into the jar file.
I was browsing and I was trying many different solutions like:
-adding a property tag under resources in the JNLP file doesn't seem to have any effect
-adding a security tag. Doesn't do anything. (but I have read somewhere that in that case the jar file needs to be signed...)
-here is how I load up the files into my java code
I was trying also to deploy my application jar into the server without the jaas.config and the java.policy and it gives me the same error about ava.security.AccessControlException etc....
So for this reason I think it should not be anything wrong in those 2 files, but the wrong thing seems to be how to load those files through Java Web Start.
Anyway here it is the context of the 2 files:
jaas.config
java.policy
Does anybody has an idea about how to make those 2 files recognized by the java web start?
Thanks in advance to anybody who will help me