Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 72199 invoked from network); 10 Feb 2010 13:36:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Feb 2010 13:36:40 -0000 Received: (qmail 51965 invoked by uid 500); 10 Feb 2010 13:36:36 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 51908 invoked by uid 500); 10 Feb 2010 13:36:36 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 51896 invoked by uid 99); 10 Feb 2010 13:36:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Feb 2010 13:36:36 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Feb 2010 13:36:28 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NfCjg-0008Tp-5G for users@tomcat.apache.org; Wed, 10 Feb 2010 05:36:08 -0800 Message-ID: <27531257.post@talk.nabble.com> Date: Wed, 10 Feb 2010 05:36:08 -0800 (PST) From: aaaaaa To: users@tomcat.apache.org Subject: problem with tomcat realm MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: agnesedalmonte@tiscali.it Hi, I try to manage tomcat realms. In particular I need to authenticate a user (with role "Developer" for example) with form authentication in my webapp (and I specify the security constraint and role in web.xml and create a JDBC realm to do it and this first login doesn't have any problem). When the user goes in a particular page I need to ask him a new authentication because this page needs more privileges (this page infact is only for administrators and in web.xml I specify it with a security constraint and role). This second step is my problem. When he goes in this page only the message "Access to the requested resource has been denied" appears while I would like that tomcat asks him for a new login and at the same time that tomcat remembers the previous login when the user comes back in the other pages. can someone help me? I need an example to do it..... -- View this message in context: http://old.nabble.com/problem-with-tomcat-realm-tp27531257p27531257.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org