1 Reply Latest reply on Mar 7, 2006 8:03 AM by chris griffith

    Form Authentication problem with jboss 3.2.8 / 4.0.3SP1

    roberto roberto Novice

      My WAR is configured to use FORM auth method.


      i have also a security constraint:


      So when a user try to connect to every JSP or index.html the login form is open. and this works fine.

      The problem occurs when credential is not valid.
      The Web container must call the form-error-page so in my case LoginErrorPage.jsp.
      But seem that web container check apply thesecurity contraint and so call again the form-login-page (login.jsp).

      i try also to add the run-as role for login jsps.


      <display-name>Login Error</display-name>
      Login Error


      the role everyone is well declared...

      Any idea?
      or it's a bug?

      I think it's a bug because in every case the LoginErrorPage.jsp must run as the role name "everyone" and also because under WebSphere the same configuration works fine.

      Thank You

        • 1. Re: Form Authentication problem with jboss 3.2.8 / 4.0.3SP1
          chris griffith Expert


          I do not think this is a bug. The problem is that you have added a security constraint to your LoginErrorPage.jsp page. The container is behaving exactly as you have asked it to. If you do not want your LoginErrorPage.jsp covered by this constraint then you should remove it.

          Also, the servlet run-as element specifies a role the servlet takes on when it is executing. This does not cover the role a principal must have to access the servlet.

          Hope this helps clearify things, cgriffith