Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 91B201036B for ; Mon, 12 Aug 2013 23:01:58 +0000 (UTC) Received: (qmail 75541 invoked by uid 500); 12 Aug 2013 23:01:55 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 75456 invoked by uid 500); 12 Aug 2013 23:01:54 -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 75447 invoked by uid 99); 12 Aug 2013 23:01:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Aug 2013 23:01:54 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fviscomi@gmail.com designates 74.125.83.52 as permitted sender) Received: from [74.125.83.52] (HELO mail-ee0-f52.google.com) (74.125.83.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Aug 2013 23:01:48 +0000 Received: by mail-ee0-f52.google.com with SMTP id c41so3889684eek.11 for ; Mon, 12 Aug 2013 16:01:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type :thread-index:content-language; bh=fwHTZzYZXkWwkl8n5nd4BuffoIo57OuFcgqiPWQ5DTQ=; b=wCJhS7HFoEshRUEDm1mxT91cGtRLgGeoADvbkCPaO/0HqWB02svSNgiJ3eEC0ehkwC Ko3Dln92QCJSQoXKi9wFIWkhse4oAlyxfgaKuu/anGFHjIAm1ISryPLDQyJOboEs4Yp9 tAqFwETiXoeEBN8UXnD6YjECEmdLQKcIVY/NkuSBZLwKXjAtIbnn/T05LVV9lcWGkHuw oHRnM9v7Ko6WfZsGSBJG5wUpqamjG0QQcceWl94K6xPdltfWOWhvVLDKi0Pf5uEf75vR Pbj89NPNo2L73M2Bv/o1cH4qe+7r5LS9gvFBdsBqTIkHg1B15cebms+XBtKM3uTKtchQ g4xA== X-Received: by 10.14.37.4 with SMTP id x4mr1636081eea.16.1376348487050; Mon, 12 Aug 2013 16:01:27 -0700 (PDT) Received: from LAP031 (host167-115-dynamic.12-79-r.retail.telecomitalia.it. [79.12.115.167]) by mx.google.com with ESMTPSA id j2sm61363861eep.6.2013.08.12.16.01.24 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 12 Aug 2013 16:01:26 -0700 (PDT) From: "Francesco Viscomi" To: Subject: FW: configuring realm UserDatabase do not works Date: Tue, 13 Aug 2013 01:01:22 +0200 Message-ID: <003101ce97af$dec6bb00$9c543100$@com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0032_01CE97C0.A24F8B00" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac6XruJ9awRHvVcDTAqD4bIqCkEi/gAAJtDQ Content-Language: it X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_0032_01CE97C0.A24F8B00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Some one can help me please! Thanks anyway Francesco Italy =20 =20 From: Francesco Viscomi [mailto:fviscomi@gmail.com]=20 Sent: marted=EC 13 agosto 2013 0.54 To: 'users-owner@tomcat.apache.org' Subject: configuring realm UserDatabase do not works =20 Hi all, I=92ve spent a lot of time to configure tomcat on using realm = UserDatabase (that is tomcat-users.xml) without success. When I try to access the protect resource I get: =20 HTTP Status 403 - Access to the requested resource has been denied type Status report message Access to the requested resource has been denied description Access to the specified resource (Access to the requested resource has been denied) has been forbidden. =20 Apache Tomcat/7.0.27 =20 =20 I=92m using netbeans 7.3 with this characteristic: =20 Product Version: NetBeans IDE 7.3 (Build 201306052037)=20 Java: 1.6.0_25; Java HotSpot(TM) Client VM 20.0-b11=20 Runtime: Java(TM) SE Runtime Environment 1.6.0_25-b06=20 System: Windows XP version 5.1 running on x86; Cp1252; it_IT (nb)=20 User directory: C:\Documents and Settings\francesco\Dati applicazioni\NetBeans\7.3=20 Cache directory: C:\Documents and Settings\francesco\Impostazioni locali\Dati applicazioni\NetBeans\Cache\7.3=20 =20 =20 I also tried on both tomcat 7.0.27.0 and tomcat 7.0.34.0. =20 These are the step I did: 1) Adding the following statement to the the tomcat-user.xml: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 2) take sure that on the server.xml the following statement are present: =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 3)Configuring web.xml (inside the WEB-INF directory) as following: =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 30 index.jsp VincoloUtente area protetta /CartellaProtetta/* UserRole FORM /login.jsp /error.jsp Utenti che hanno questo ruolo (user) possono accedere = all'area protetta UserRole =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 =20 4) creating the file index.jsp,login.jsp and error.jsp. =20 5)creating the path and file at =93web pages/CartellaProtetta/fileProtetto.html=94 =20 =20 Is this a bug on tomcat or I=92m making some mistake? =20 Thanks really much Francesco Italy =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 ------=_NextPart_000_0032_01CE97C0.A24F8B00--