1 Reply Latest reply on Oct 22, 2009 10:49 AM by Wolfgang Knauf

    Error using DatabaseServerLoginModule

    Keith Hennessy Newbie

      Hello Here is a bit of the relevant code I'm using:







      <application-policy name = "marsPolicy">
       <login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule" flag = "required">
       <module-option name = "dsJndiName">java:/datasource/marquis-backup</module-option>
       <module-option name = "principalsQuery">SELECT password FROM [user] WHERE loginId = ?</module-option>
       <module-option name = "rolesQuery">select description, 'roles' from role r, userrole ur, [user] u where u.userId = ur.userId and ur.roleId = r.roleId and u.loginid = ?</module-option>

      When I enter invalid credentials I'm properly forwarded to loginFailure.jsp, when I enter valid credentials I get the following error:

      message: Invalid direct reference to form login page

      description: The request sent by the client was syntactically incorrect (Invalid direct reference to form login page).

      How can I correct this error?

      Thank you.