1 Reply Latest reply on Jun 27, 2005 10:59 AM by netcetera

    Custom login module class not loaded

    netcetera

      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>
      


      If replace I the classname in the config above with a JBoss implementation (DatabaseServerLoginModule) the configuration seems to be loaded as it (as expected) complains about missing database tables as soon as a bean is called:

      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
      


      I can not find any complaints in the log about the class not being found (even if I specify login-module code="FooBar") - is there a way to find out why the login module is not loaded correctly?


      thanks
      Stefan