Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JAAS -- Unable to locate a login configuration

843811Jan 10 2003 — edited Apr 7 2003
Hi, I'm having a bit of problem specifying which Login configuration files to use.

I downloaded a bit of sample code from the net, the name of the config file is jaas.config. If I specify the config file on the command line,ie:
java -Djava.security.auth.login.config=jaas.config jaasTest
everything works fine. But if I use the other method for specifying the config files, ie. by modifying the java.security file, it gives me
"java.lang.SecurityException: Unable to locate a login configuration".

This is how my java.security looks like now

*** bla bla bla ***

#
# Default login configuration file
#
#login.config.url.1=file:${user.home}/.java.login.config
login.config.url.1=file:C:/Program Files/IBM/..../JAAS/jaas.config

*** bla bla bla ***

Is there anything I've done wrong here? I much prefer the 2nd method, since later my data would be coming in through a HTML form. Btw, I'm running the java files in WSAD, is there a way of doing this in WSAD? Thanks in advance. T
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 5 2003
Added on Jan 10 2003
3 comments
522 views