Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 56857 invoked from network); 13 Dec 2010 21:37:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Dec 2010 21:37:28 -0000 Received: (qmail 97302 invoked by uid 500); 13 Dec 2010 21:37:25 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 97135 invoked by uid 500); 13 Dec 2010 21:37:25 -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 97126 invoked by uid 99); 13 Dec 2010 21:37:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Dec 2010 21:37:25 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.139.53.220] (HELO nm23-vm0.bullet.mail.ac4.yahoo.com) (98.139.53.220) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 13 Dec 2010 21:37:16 +0000 Received: from [98.139.52.194] by nm23.bullet.mail.ac4.yahoo.com with NNFMP; 13 Dec 2010 21:36:54 -0000 Received: from [98.139.52.139] by tm7.bullet.mail.ac4.yahoo.com with NNFMP; 13 Dec 2010 21:36:54 -0000 Received: from [127.0.0.1] by omp1022.mail.ac4.yahoo.com with NNFMP; 13 Dec 2010 21:36:54 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 676756.25086.bm@omp1022.mail.ac4.yahoo.com Received: (qmail 43262 invoked by uid 60001); 13 Dec 2010 21:36:54 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1292276214; bh=vSPrVqqbi+uWvdoWaXDtx0mpAh4GX7JxvFVnF0gvvgY=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=E8DK8qpKBdIoZVk5peVx+nH3YnBLg3lNB0p+QQcH0kqU6vsEUEhCytvbJRKVABtTVrQHLo3PRv6y2k7G58NiVRgn9k/j/OMveX1nvVRbhCOzchrAd1jKceKXWvmHqJ6PwhubYO08o3EZgXfW+0p/gfYty43nLFjWodef+UHYoTA= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=WwinOh7jgqC4TIHReim3Z2LmTpW+UtT7V0ejW4anR+P1wzsp2s4jn6mXje9ejn3N1GBrUEZk5FGheNpkYCWkt3bqdJ4N5/uPUPGv+jW19c+8immcFcHcP2A1/1iSCIW/hV0lWi7uZR1ycK9kdQm3w/IAntFPMKWVJssbZTmTnAk=; Message-ID: <563080.43139.qm@web56607.mail.re3.yahoo.com> X-YMail-OSG: g01LdgEVM1nSvsb.L3vGBR.kN79.z.3kvvm50ufF9UZ1FM7 G3MTaiPBf9qcPxRHEo5BfERMgFmDh7vyYY2C5cu2D3R2ozcV78R8eWD6RgoQ KsQXB5oqTBX5ZQYFsQSJEo_qpDG9az2Hpxv7Hc0sf5w3b2uxMJ8k2l1MxOkk oDTkygAzY9iEc3pYL3jdK94op1sypsTih6rzXqkiIUEMpbSG8gMlWc5Xpr.g o0aCAc3iqAd1MVgBpV3r5RIeLgTiYAVXYyZqScyma5WjhluO45sp1Yg6MSmB HO2xMKj9xP_cBqzrVshxj1GiCwjCAW2DgAlgKG7CyqCWMd1Juk9Xqd9i_taf yVrFJiRhQIRXa_rq105TTlCv040KgNkXEemr.B9IxePfTB_A7J3BAKdQjtnU rYi2CpIcHg38- Received: from [71.133.241.161] by web56607.mail.re3.yahoo.com via HTTP; Mon, 13 Dec 2010 13:36:54 PST X-Mailer: YahooMailRC/553 YahooMailWebService/0.8.107.285259 References: <522087.52716.qm@web56604.mail.re3.yahoo.com> <4D0684B0.30000@christopherschultz.net> Date: Mon, 13 Dec 2010 13:36:54 -0800 (PST) From: Mark Eggers Subject: Re: How to configure JNDI resource To: Tomcat Users List In-Reply-To: <4D0684B0.30000@christopherschultz.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked by ClamAV on apache.org Chris, Weird. I guess I've just blindly followed the standards. I'll have to give it a try later on today. Thanks for the info. /mde/ Well, how about that. I just commented out the resource-ref element in web.xml for a Hibernate-based application and it ran fine. I have the following line in my hibernate.cfg.xml file: java:comp/env/jdbc/jndi-name ----- Original Message ---- From: Christopher Schultz To: Tomcat Users List Sent: Mon, December 13, 2010 12:40:16 PM Subject: Re: How to configure JNDI resource -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mark, On 12/13/2010 3:21 PM, Mark Eggers wrote: > In order to use the resource, you'll need to tell your application about it > (resource-ref in web.xml), and create it (Resource in context.xml or > server.xml). Where you put the creation depends on your requirements. My experience with Tomcat 5.5 and 6.0 is that when the resource is defined in META-INF/context.xml, no is necessary in web.xml. I'm not sure if that's intentional or not. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk0GhLAACgkQ9CaO5/Lv0PC3igCeP85AKX62BbcAhZUSjJiwzFJ1 CyUAnR9YlmRNZOfo8QQk4JVEbcNpHtUG =w0dE -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org