Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 73276 invoked from network); 6 Jan 2002 08:48:49 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 6 Jan 2002 08:48:49 -0000 Received: (qmail 18341 invoked by uid 97); 6 Jan 2002 08:48:40 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 18325 invoked by uid 97); 6 Jan 2002 08:48:40 -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 18314 invoked from network); 6 Jan 2002 08:48:39 -0000 Message-ID: <002701c1968f$a646ebc0$beccb1c2@oop> From: "George Kakarontzas" To: Subject: problem Date: Sun, 6 Jan 2002 10:53:44 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi all. I�m having a problem with tomcat 4.0 and form based authentication. When I�m providing an existing username/password, that is one that exists in the database or the tomcat-users.xml (I have tried both memory and JDBC Realm), but has a role that is not allowed to view the page, the browser displays hid default �403� page instead of the error page that I constructed (/error.jsp). Note, however, that it displays my form-error-page correctly when I provide an invalid username/password (not in the database or tomcat-users.xml at all), or a wrong password. I am using tomcat 4.0 on Win2000 and I have tried both the stand-alone server and the NT service. I have also tried the tomcat4.0\webapps\examples\jsp\security\protected\index.jsp after I have commented out the �role1� in the tomcat4.0\webapps\examples\WEB-INF\web.xml file (to make sure that is not my program with the problem). Then I tried to login as the user role1 providing the correct password and the browser displayed the default error page again instead of the form-error-page. Why is that? -George -- To unsubscribe: For additional commands: Troubles with the list: