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!

Exception: No LoginModules configured

843811Aug 15 2003 — edited May 14 2004
I'm implementing authentication using JAAS (in Oracle 9iAS) in our application. We're using login modules that someone else has written. The problem is that I keep getting the exception:

javax.security.auth.login.LoginException: No LoginModules configured for AlwaysLogin
at javax.security.auth.login.LoginContext.init(LoginContext.java:176)
at javax.security.auth.login.LoginContext.<init>(LoginContext.java:319)

The java.security.auth.login.config system property is read in from the orion-application.xml file. The system property is being read in ok, but the app is unable to locate that actual file that the system property points to, e.g. c:\my.login.config. According to the javadocs:

The java.lang.System property java.security.auth.login.config may also be set to a URL pointing to another login configuration file

How do I need to refer to the file (e.g. c:/my.login.config or file:///c:/my.login.config etc.) to ensure that it will be read? I can't for the life of me figure out what is wrong.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 11 2004
Added on Aug 15 2003
4 comments
1,471 views