We wrote a customized login module (PassDatabaseServerLoginModule extends DatabaseServerLoginModule) but it seems as this class doesn't get loaded. The class is JARed to $JBOSS_HOME/server/default/lib/.
login-config.xml snip:
<application-policy name = "pass"> <authentication> <login-module code = "ch.netcetera.pass.jboss.security.PassDatabaseServerLoginModule" flag = "required"> <module-option name = "unauthenticatedIdentity">guest</module-option> <module-option name = "dsJndiName">java:/jdbc/OraclePassDS</module-option> <module-option name = "hashAlgorithm">pass2</module-option> </login-module> </authentication> </application-policy>
2005-06-27 11:17:03,418 136663 ERROR [org.jboss.security.auth.spi.DatabaseServerLoginModule] (RMI TCP Connection(3)-172.17.0.157:) Query failed java.sql.SQLException: ORA-00942: table or view does not exist
The problem was that in the initialize(...) method a log.debug statement was executed before the super.initialize(...) call. This presumably provoked a NullPointerException that is catched somewhere not not logged at all :-/
Stefan