From tomcat-user-return-72465-qmlist-jakarta-archive-tomcat-user=nagoya.apache.org@jakarta.apache.org Wed Jul 23 17:16:57 2003 Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 2005 invoked from network); 23 Jul 2003 17:16:57 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 23 Jul 2003 17:16:57 -0000 Received: (qmail 11192 invoked by uid 97); 23 Jul 2003 17:19:33 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 11185 invoked from network); 23 Jul 2003 17:19:32 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 23 Jul 2003 17:19:32 -0000 Received: (qmail 550 invoked by uid 500); 23 Jul 2003 17:16:39 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 536 invoked from network); 23 Jul 2003 17:16:38 -0000 Received: from smtp-out.voila.wanadooportails.com (193.252.117.74) by daedalus.apache.org with SMTP; 23 Jul 2003 17:16:38 -0000 Received: from voila.fr (10.3.7.82) by smtp-out.voila.wanadooportails.com (6.7.015) id 3EB9456C00B64EE7 for tomcat-user@jakarta.apache.org; Wed, 23 Jul 2003 19:16:07 +0200 Date: Wed, 23 Jul 2003 19:16:06 +0200 Message-Id: Subject: =?iso-8859-1?Q?Re:_Pb_Form_authentication?= MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "=?iso-8859-1?Q?v.siguier?=" To: "=?iso-8859-1?Q?tomcat-user?=" X-XaM3-API-Version: 3.2 R27 (B52-pl4) X-type: 0 X-SenderIP: 194.2.163.124 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I am agree with you but I don't try to access directly to login.jsp, I ca= ll the site presentation page index.jsp.=0D=0AFollowing are my to authent= ication jsp pages :=0D=0A=0D=0ALogin.jsp :=0D=0A-------------=0D=0A= =0D=0A=0D=0ALogin Page for Examples=0D=0A=0D=0A
' >=0D=0A =0D=0A =0D=0A =0D=0A = =0D=0A = =0D=0A =0D=0A =0D=0A= =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A
Username:
Password:=0D=0A
=0D=0A
=0D=0A=0D=0A=0D=0A=0D=0A=0D=0AError.jsp :=0D=0A------------=0D=0A=0D=0A=0D=0AError Page For Examples=0D=0A=0D= =0A=0D=0AInvalid username and/or password, please= try=0D=0A'>again.= =0D=0A=0D=0A=0D=0A=0D=0A=0D=0A> If I understand the questio= n, then:=0D=0A> =0D=0A> It sounds like you are trying to navigate directl= y to "login.jsp" which your not =0D=0A> suppose to do.=0D=0A> =0D=0A> Rea= son:=0D=0A> j_security_check intercepts your request and checks to see if= your are currently =0D=0A> authorized to go to that URI. If you are the= n it forwards you to that location. =0D=0A> If you navigate directly to= login.jsp, then j_security_check doesn't know =0D=0A> where to forward y= ou to.=0D=0A> =0D=0A> =0D=0A> v.siguier wrote:=0D=0A> > Hello,=0D=0A> > =0D= =0A> > I work with Tomcat 4.1.24 and I have a problem with authentication= (I use DataSourceRealm) at runtime.=0D=0A> > =0D=0A> > On login page, if= I enter login - password existing in database with the rigth role to acc= ess to the specified ressource it is OK =0D=0A> > (the targeted page is d= isplayed).=0D=0A> > The problem happens when I enter an existing login - = password with the wrong role : my error page is displayed and when I =0D=0A= > > click the login page link and enter an existing login - password with= the rigth role or wrong role, I have following Tomcat error =0D=0A> > me= ssage :=0D=0A> > =0D=0A> > 404 HTTP error - /context_root/jsp/j_security_= check=0D=0A> > =0D=0A> > message /context_root/jsp/j_security_check=0D=0A= > > description Asked ressource (/context_root/jsp/j_security_check) is n= ot available.=0D=0A> > =0D=0A> > Does anybody know what is the problem ?=0D= =0A> > Thanks for your help.=0D=0A> > =0D=0A> > Vincent=0D=0A> > =0D=0A> = > =0D=0A> > ------------------------------------------=0D=0A> > =0D=0A> >= Faites un voeu et puis Voila ! www.voila.fr =0D=0A> > =0D=0A> > =0D=0A> = > =0D=0A> > -------------------------------------------------------------= --------=0D=0A> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta= .apache.org=0D=0A> > For additional commands, e-mail: tomcat-user-help@ja= karta.apache.org=0D=0A> > =0D=0A> > =0D=0A> =0D=0A> -- =0D=0A> **********= *********************************=0D=0A> * Rick Roberts = *=0D=0A> * Advanced Information Technologies, Inc. *=0D=0A> ***= ****************************************=0D=0A> =0D=0A> =0D=0A> ---------= ------------------------------------------------------------=0D=0A> To un= subscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org=0D=0A> For = additional commands, e-mail: tomcat-user-help@jakarta.apache.org=0D=0A> =0D= =0A> =0D=0A------------------------------------------=0D=0A=0D=0AFaites u= n voeu et puis Voila ! www.voila.fr =0D=0A --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org