-
1. Re: Newbie: Login page for FORM authentification
benkarsa Aug 7, 2003 3:00 PM (in response to benkarsa)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
petertje Aug 8, 2003 9:01 AM (in response to benkarsa)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
benkarsa Aug 8, 2003 10:12 AM (in response to benkarsa)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
petertje Aug 9, 2003 4:04 AM (in response to benkarsa)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
benkarsa Aug 10, 2003 5:35 AM (in response to benkarsa)Sorry, but I can't understand your answer. My app is in excrurec.war file deployed in /server/default/deploy/.
-
6. Re: Newbie: Login page for
benkarsa Aug 10, 2003 5:42 AM (in response to benkarsa)I'm first calling page http://localhost:8080/excrurec/form/test.jsp. This links me to http://localhost:8080/excrurec/logon.html;jsessionid=521B5E38CB1FF600BAC29CDE5068168E
-
7. Re: Newbie: Login page for
petertje Aug 18, 2003 8:15 AM (in response to benkarsa)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