Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 69099 invoked from network); 3 Nov 2009 13:48:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Nov 2009 13:48:45 -0000 Received: (qmail 54552 invoked by uid 500); 3 Nov 2009 13:48:42 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 54466 invoked by uid 500); 3 Nov 2009 13:48:41 -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 54455 invoked by uid 99); 3 Nov 2009 13:48:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Nov 2009 13:48:41 +0000 X-ASF-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [66.162.201.195] (HELO www.secmgmt.com) (66.162.201.195) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 03 Nov 2009 13:48:38 +0000 Received: from smcdhsi7eg25no (smcraleigh.secmgmt.com [24.106.188.250]) by www.secmgmt.com (8.13.1/8.13.1) with SMTP id nA3DmGia025455 for ; Tue, 3 Nov 2009 08:48:16 -0500 From: "Mike Baranski" To: "'Tomcat Users List'" Subject: Trouble with context and JNDI resource Date: Tue, 3 Nov 2009 08:49:04 -0500 Message-ID: <01cc01ca5c8c$689c96f0$39d5c4d0$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcpcjGWMSfXMEyS3RISivF5/0mWirw== Content-Language: en-us x-cr-hashedpuzzle: CR4R CY16 CfQN C7qK EILV EmHe GXHx HBUU HvQw HwTA Hxak IRXI Itq4 LPEy Lj3n MQx/;1;dQBzAGUAcgBzAEAAdABvAG0AYwBhAHQALgBhAHAAYQBjAGgAZQAuAG8AcgBnAA==;Sosha1_v1;7;{EE93516A-AE8F-4646-AED3-4D92DA1F1807};bABpAHMAdAAtAHMAdQBiAHMAYwByAGkAcAB0AGkAbwBuAHMAQABzAGUAYwBtAGcAbQB0AC4AYwBvAG0A;Tue, 03 Nov 2009 13:49:00 GMT;VAByAG8AdQBiAGwAZQAgAHcAaQB0AGgAIABjAG8AbgB0AGUAeAB0ACAAYQBuAGQAIABKAE4ARABJACAAcgBlAHMAbwB1AHIAYwBlAA== x-cr-puzzleid: {EE93516A-AE8F-4646-AED3-4D92DA1F1807} X-Virus-Scanned: ClamAV 0.88.7/9979/Mon Nov 2 21:14:11 2009 on www.secmgmt.com X-Virus-Status: Clean I'm using this page, trying to get a resource in a java class: http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html I have this in context.xml: WEB-INF/web.xml I have this in web.xml: Connection pool for xmlrpc. proteus org.apache.commons.dbcp.BasicDataSource I have this code: l.debug("Created the status xmlrpc class"); Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(""); this.setDataSource((BasicDataSource) envCtx.lookup("proteus")); I get this error: Name proteus is not bound in this Context --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org