From users-return-210078-apmail-tomcat-users-archive=tomcat.apache.org@tomcat.apache.org Thu Mar 18 22:14:17 2010 Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 20319 invoked from network); 18 Mar 2010 22:14:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Mar 2010 22:14:17 -0000 Received: (qmail 19810 invoked by uid 500); 18 Mar 2010 22:14:14 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 19756 invoked by uid 500); 18 Mar 2010 22:14:13 -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 19747 invoked by uid 99); 18 Mar 2010 22:14:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Mar 2010 22:14:13 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [69.147.96.243] (HELO web63101.mail.re1.yahoo.com) (69.147.96.243) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 18 Mar 2010 22:14:06 +0000 Received: (qmail 13449 invoked by uid 60001); 18 Mar 2010 22:13:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1268950425; bh=py5X8XFA2PZFX06C2I+wymea4xyzvYzL0wOHjnJ0g0E=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=uQ6L1kuGLzun4iA6IBhOa76cNme3UDnNBk15lnA8Hs63CqK/LbtYZcSm16twPj5iZm2RcsQ0771DBnATdkDjawwspj5cp/1lB+dmTIhzN0pmysmPC3iFEcXGt/mUYuLmvP9+5F6DbD1ErN6Xp3caifXRFivnVzRbuVo4v3357RA= DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=xziSu5XY3LQhXevH5nqIG+MuDRqbcgq3sMkeSDvy0Kc98CcsSNyuxBBdxxQauSLqtuMObNqYxI5AL+sUnJpvB+oCeGDgq7k7AhRxzZbQ8321lmN1NjB5V+Nk2317LjdBtY5yS3JtITlwYyt61ZkKcY+FXRkTdMQHp6IUGWf+NlI=; Message-ID: <127098.13434.qm@web63101.mail.re1.yahoo.com> X-YMail-OSG: wJWxVdkVM1nihQ2YcL4nODQ0QvfGxE.jkZ_vRrSGvfIZa2b C.dLxHp3w8Ogydh8uo57GhmUUYlVK7rSI5WTV3PJmQRwSGyT5QlvtDkf3Cwt 7zhFN4_fw9yXYOLo20_.EXW2volv9DIWfotX_O052IVX.iTFtCtXZdpx66G5 bdc.co.aWwlWdtRQ2UJLK8WKDi0V22oESYwgvKYabK3uCBvw7w8gnCWMMNKs YQCQLOvUMn6l506rl8JtKvFSsOmb3rlKDNXSN_HA6YNVOLXUiR70m.SNNI.u yLnTmPeycmzVNfCjUu4POTYvI3PFy9ris8pjjVQd8f4lWDvYGKk47dRh.kRp ZqxU9_NQQVhVrVyY1muWBTNnjcw-- Received: from [169.229.196.53] by web63101.mail.re1.yahoo.com via HTTP; Thu, 18 Mar 2010 15:13:44 PDT X-Mailer: YahooMailClassic/10.0.8 YahooMailWebService/0.8.100.260964 Date: Thu, 18 Mar 2010 15:13:44 -0700 (PDT) From: Bob Hall Subject: RE: DB connection error -Tomcat 6 config To: Tomcat Users List In-Reply-To: <08382548D50D3049BD5599E1E3146B341054F2054A@exgtmb06.nam.nsroot.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii --- On Thu, 3/18/10 at 3:07 PM, Propes, Barry L wrote: > Yes, it should be. > > Not sure how that got jumbled as such but what I did have > was: > > Connection connection = null; > Context initCtx = new InitialContext(); > Context envCtx = (Context) > initCtx.lookup("java:comp/env"); > DataSource ds = (DataSource) > envCtx.lookup("jdbc/myoracle"); > > Tried other variations seen elsewhere on here as suggested. > But still no dice. > Odd - like I'd mentioned earlier, I can pass params through > (DBUrl, user, password) and hit it, but not with a Context > object. > Have you tried 'exploring' JNDI? NamingEnumeration list = initCtx.list("java:comp/env"); - Bob --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org