0 Replies Latest reply on Jul 2, 2002 5:17 PM by Brian

    DatabaseServerLoginModule

    Brian Newbie

      I am using JBoss 3.0.0 with Tomcat 4.0.3 and doing some JAAS work. When I try to run my JAAS program I get this error:
      javax.security.auth.login.LoginException: unable to find LoginModule class: org.jboss.security.auth.spi.DatabaseServerLoginModule
      my auth.conf file is configured correctly i think and looks like this:
      simple {
      // Very simple login module:
      // any user name is accepted.
      // password should either coincide with user name or be null,
      // all users have role "guest",
      // users with non-null password also have role "user"
      org.jboss.security.auth.spi.SimpleServerLoginModule required;
      };

      example2 {
      org.jboss.security.auth.spi.DatabaseServerLoginModule required
      dsJndiName="java:MySqlDS";
      };
      example2 is the name of the entry that i am looking for, just like the jaas-howto example that jboss.org provides.
      i have copied the mysql-service.xml file into the deploy directory and made an entry in the login-config.xml file, all of which match with each other as documented, but all i get it this error about the login module not being found.
      Can anyone help?
      Thank you
      tool