6 Replies Latest reply on Dec 13, 2005 6:23 PM by roy.russo

    Login failure results in 404 error

      I am using JBoss Portal 2.0.1RC1 version. When a user tries to login with a wrong username & password, it results in a Http 404 error. Has anyone had a similar problem?

        • 1. Re: Login failure results in 404 error
          ego2002

          Hi!!

          I have the same problem... JBoss cannot find http://localhost:8080/portal/auth/j_security_check
          and I get a 404 error page in the default portlet, while if I login correctly there are no problems...
          I made installing JBoss Portal by a colleague of mine and he gets the same error...

          Can anybody help us?

          Thanks!!

          Il Dima

          • 2. Re: Login failure results in 404 error

            The file were the wrong login page is configured is portal-server.war/WEB-INF/web.xml

            <login-config>
             <auth-method>FORM</auth-method>
             <realm-name>JBoss Portal</realm-name>
             <form-login-config>
             <form-login-page>/login.jsp</form-login-page>
             <form-error-page>/errorpages/wronglogin.html</form-error-page>
             </form-login-config>
             </login-config>
            


            You can either create the page /errorpages/wronglogin.html or edit this file to redirect to an existing page

            • 3. Re: Login failure results in 404 error

              The wronglogin.html file comes with the JBoss Portal installation itself. This does not have to be created again.

              This was working in the Portal v2.0, but does not work with the Portal v2.0.1RC1.

              • 4. Re: Login failure results in 404 error

                In 2.0 Branch the /errorpages/wronglogin.html existed in the CMS. We moved away from that in 2.2, as some people unplug the CMS. However, if in 2.0.1, the page does not exist, then create it in the CMS.

                Additionally, you can modify the web.xml:

                <form-login-page>/login.jsp</form-login-page>
                <form-error-page>/error.jsp</form-error-page>
                


                ... and create the error.jsp alongside the /login.jsp.

                • 5. Re: Login failure results in 404 error

                  Just for your information...

                  The /errorpages/wronglogin.html page does exist in the CMS even in JBoss portal v2.0.1RC1, however it is in the wrong location. I resolved the problem by moving the errorpages directory directly under /default diectory

                  • 6. Re: Login failure results in 404 error

                     

                    "anituarun" wrote:
                    The /errorpages/wronglogin.html page does exist in the CMS even in JBoss portal v2.0.1RC1, however it is in the wrong location.


                    ... or that too. ;-)