Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 81481 invoked from network); 29 Aug 2005 15:17:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Aug 2005 15:17:08 -0000 Received: (qmail 4321 invoked by uid 500); 29 Aug 2005 15:16:52 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 4164 invoked by uid 500); 29 Aug 2005 15:16:51 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 4151 invoked by uid 99); 29 Aug 2005 15:16:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Aug 2005 08:16:51 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [199.202.209.12] (HELO NEMQ1000.standardlife.ca) (199.202.209.12) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Aug 2005 08:17:06 -0700 Received: from nemq1003.slac.ca ([172.29.4.30]) by nemq1006.slac.ca with Microsoft SMTPSVC(5.0.2195.5329); Mon, 29 Aug 2005 11:16:48 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Really struggling with DataSource'd Realm Date: Mon, 29 Aug 2005 11:16:47 -0400 Message-ID: <5875AC614AB21C41AC9BC93062C823C101B2A57D@nemq1003.slac.ca> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Really struggling with DataSource'd Realm Thread-Index: AcWsqenYjEBkjFULSQuHVp8ApFuzhgAAq0bQ From: "Marc-Andre Blain" To: "Tomcat Users List" X-OriginalArrivalTime: 29 Aug 2005 15:16:48.0467 (UTC) FILETIME=[ACE07230:01C5ACAC] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello Alan, try removing the / in your jndi name java:comp/env/jdbc/family_tree. Thanks ! -----Original Message----- From: Alan Chandler [mailto:alan@chandlerfamily.org.uk] Sent: Monday, August 29, 2005 10:57 AM To: tomcat-user@jakarta.apache.org Subject: Really struggling with DataSource'd Realm I am try to to use FORM based authorisation to control access to part of = my=20 database application. Consequently I have added the users and user_role = tables to my database which is already been set up as=20 java:/comp/env/jdbc/family_tree. I then created a Realm which refers to it. As per the docs When I try and login I get a naming exception 2005-08-29 15:51:54 DataSourceRealm[/famtree]: Exception performing=20 authentication javax.naming.NameNotFoundException: Name java: is not bound in this = Context =20 I have experimented with several strings for dataSourceName in the Realm = tag=20 above such as dropping the java: at the front, or removing the leading = slash,=20 or leaving out the frontf the string and just adding jdbc/family_tree, = and=20 even renaming the resource to just family_tree. In every case it seems to stop passing the name at the first delimeter = (':' or=20 '/') and failing. Is there something wrong with the DataSourceRealm in this version of = tomcat=20 (4.1.3) or am I doing something else wrong? Can somebody guide me through this please. --=20 Alan Chandler http://www.chandlerfamily.org.uk --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org