7 Replies Latest reply on Aug 18, 2003 8:15 AM by petertje

    Newbie: Login page for

    Sascha Newbie

      Hi,

      my login page looks like this:

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


      Excrurec
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">





      Username:
      Password:









      After the login the server maybe tries to link to "j_security_check", but can't find the site. What is "j_security_check"? How do the login page have to look like?

      I'm using JBoss 3.0.3 with Tomcat.

        • 1. Re: Newbie: Login page for FORM authentification
          Sascha Newbie

          Hi,

          I can't see any JAAS output in the JBoss' log-file. Maybe there should an output. Maybe I've configured it not correct?

          • 2. Re: Newbie: Login page for
            Apprentice

            Your login page is correct. However, you should not request it yourself, but go to a secured page (see web.xml); then the servlet engine will redirect you to the login page first and to the requested (secured) page after succesfull login.

            Hth
            Peter

            • 3. Re: Newbie: Login page for
              Sascha Newbie

              Hi,

              I first accessing a secured jsp that redirects me to the login page. after the input of my login data I get the following error:

              18:08:28,321 INFO [Server] JBoss (MX MicroKernel) [3.0.3 Date:200209301503] Started in 1m:17s:540ms
              18:09:38,337 INFO [Engine] StandardHost[localhost]: MAPPING configuration error for request URI /j_security_check

              I'm using JBoss 3.0.3 with Tomcat 4.1.12 and Sun JDK 1.4.

              I've got a problem with the /j_security_check "page"/buildin function.

              The Browser always shows the page:
              Apache Tomcat/4.1.12-LE-jdk14 - Error report<!--H1{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} H3{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-color : white;} B{color : white;background-color : #0086b2;} HR{color : #0086b2;} --> <h1>HTTP Status 500 - No Context configured to process this request</h1><HR size="1" noshade>type Status reportmessage No Context configured to process this requestdescription The server encountered an internal error (No Context configured to process this request) that prevented it from fulfilling this request.<HR size="1" noshade><h3>Apache Tomcat/4.1.12-LE-jdk14</h3>

              • 4. Re: Newbie: Login page for
                Apprentice

                It seems that it is searching the j_security_check in the root context - if your webapp is not deployed on the root this won't work.... Are you sure that the action in the login page is without a starting '/'? If the problem persists, attach your web.xml file...

                • 5. Re: Newbie: Login page for
                  Sascha Newbie

                  Sorry, but I can't understand your answer. My app is in excrurec.war file deployed in /server/default/deploy/.

                  • 7. Re: Newbie: Login page for
                    Apprentice

                    I really don't have a clue... This should work; can't find anything wrong in the files you posted.
                    What i meant in my previous post is that according to the log, it seems it is looking for http://localhost:8080/j_security_check (instead of http://localhost:8080/excrurec/j_security_check). That would cause a "no context" error (context means: web context or web application, thus the 'excrurec' part) and that would also explain the mapping configuration error.
                    However, i still don't get it why it would request http://localhost:8080/j_security_check, as your login.html page contains a relative path to j_security_check (good) and the form/test.jsp request is correctly redirected to excrurec/logon.html.

                    So the only advice i can give you is: try a different version of tomcat and/or jboss, or post the complete war so that i can try to reproduce it locally....

                    Regards,
                    Peter