I'm developing a loginmodule and have written a client to test it. I keep getting these errors and I'm not sure what the problem is. So now I'm trying to use the SimpleServerLoginModule just to test my client etc.
I've added the following to login-config.xml:
<application-policy name = "MyLogin">
<login-module code = "org.jboss.security.auth.spi.SimpleServerLoginModule"
flag = "required" />
I have modified JaasSecurityManager to add extra debug information and I get the following exception:
javax.security.auth.login.LoginException: unable to find LoginModule class: org.jboss.security.auth.spi.SimpleServerLoginModule
Why can't the SimpleServerLoginModule be found?
Thanks for any help,
Found the answer in this forum. The problem was that the IBM JDK that was installed on our server includes JAAS so JBoss was using the IBMSs JAAS classes instead of the ones supplied with JBoss.
After reinstalling the JDK without JAAS everything works nicely.