2007-04-24 01:34:33.275 PM: ERROR Login problem
javax.security.auth.login.LoginException: No LoginModules configured for PPS
at javax.security.auth.login.LoginContext.init(LoginContext.java:176)
at javax.security.auth.login.LoginContext.<init>(LoginContext.java:319)
where PPS is the name of my app.
There are no other errors being logged in SystemOut or SystemErr logs. What could I be missing?
Could this be some kind of class loading issue? Even though I am not seeing any ClassNotFound exceptions anywhere in the logs.
If anyone has successfully configured a JAAS custom login module with websphere, please provide any helpful tips.
> If anyone has successfully configured a JAAS custom login module with websphere, please provide any helpful tips.
Did you look at this article ?
http://www-128.ibm.com/developerworks/websphere/techjournal/0508_benantar/0508_benantar.html
Based on the document's suggestion, I have tried putting my LoginModule in wsas/lib/ext directory also, but I still get the same error = No LoginModules configured for PPS.
Why are you using an application config instead of adding your module to
the relevant system config?
Also, how are you invoking the application config ?
2007-04-26 05:35:22.093 AM: DEBUG Module when creating login context:PPS
2007-04-26 05:35:22.111 AM: ERROR Unidentified problem
java.lang.SecurityException: unable to instantiate LoginConfiguration
at javax.security.auth.login.Configuration.getConfiguration(Configuration.java:212)
at javax.security.auth.login.LoginContext$1.run(LoginContext.java:166)
at java.security.AccessController.doPrivileged(AccessController.java:192)
at javax.security.auth.login.LoginContext.init(LoginContext.java:163)
at javax.security.auth.login.LoginContext.<init>(LoginContext.java:319)
This message isn't much useful - I can't tell whether this is a class loader problem or something else.
btw, my application is compiled in java 1.4.2 and websphere 6.1 is using java 5. Could that by any remote chance be an issue?
It could, but you still haven't answered my questions.
I am not quite sure what you mean by "application config". Do you mean a jaas.cfg file? I am not using that. I am configuring my module using the "Application Login" link on the websphere admin console (under JAAS).
>Also, how are you invoking the application config ?
Again, would you pls elaborate on what you mean by "application config"?
Login modules can be added to system configurations or application
configurations. System configurations execute at certain well-defined
system events. These include web-inbound, rmi-inbound, rmi-outbound etc.
You can add custom login modules to these configurations, as described
in detail in my paper. Application configurations need to be invoked
explicity by doing a JAAS login in code, in order to set a credential on
the current thread of execution.