0 Replies Latest reply on Mar 22, 2007 5:51 PM by xhemjl

    how to display j_security_check error?

    xhemjl

      Hi All,

      I have a problem with FORMAuth

      I have defined:

      <login-config>
       <auth-method>FORM</auth-method>
       <form-login-config>
       <form-login-page>/login.jsp</form-login-page>
       <form-error-page>/error.jsp</form-error-page>
       </form-login-config>
       </login-config>


      and after login (trying) I'm forwarded to error.jsp

      but I cannot see any errors in JBoss console

      the error.jsp page is:

      <%@page isErrorPage="true" %>
      <html>
      <body>
      <h1>Error page</h1>
      <pre>
      <%=exception.getMessage()%>
      </pre>
      </body>
      </html>


      but unfortunately it produces the NullPointerException on:
      exception.getMessage()

      how can I debug it?

      thanks in advance

      best regards
      ?ukasz