Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 56282 invoked from network); 12 Dec 2003 08:30:14 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 12 Dec 2003 08:30:14 -0000 Received: (qmail 94550 invoked by uid 500); 12 Dec 2003 08:29:29 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 94515 invoked by uid 500); 12 Dec 2003 08:29:29 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 94447 invoked from network); 12 Dec 2003 08:29:29 -0000 Received: from unknown (HELO moutng.kundenserver.de) (212.227.126.177) by daedalus.apache.org with SMTP; 12 Dec 2003 08:29:29 -0000 Received: from [212.227.126.208] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1AUig9-0001Vw-00 for tomcat-user@jakarta.apache.org; Fri, 12 Dec 2003 09:29:41 +0100 Received: from [134.106.198.202] (helo=MINASMORGUL) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1AUig9-0000A7-00 for tomcat-user@jakarta.apache.org; Fri, 12 Dec 2003 09:29:41 +0100 From: "Jan Behrens" To: "'Tomcat Users List'" Subject: AW: JNDI comp namespace Date: Fri, 12 Dec 2003 09:24:18 +0100 Message-ID: <003301c3c089$58bb2c60$2ec66a86@MINASMORGUL> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 In-Reply-To: <00b401c3c087$d7f6f5b0$6901a8c0@NaturalNutritionTech.com> Importance: Normal X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:7b3efa467a528fdba0cddbd744aae84b X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Tony, I have - and it allways proved to be my fault in the end ;) I would suggest that you post your server xml to have someone look it over. Don't forget to change your connect data and password before though! Is the resource bound in the appropriate context or globally? Cheers, Jan > -----Ursprungliche Nachricht----- > Von: Tony Colson [mailto:colson@prettyhealth.biz] > Gesendet: Freitag, 12. Dezember 2003 09:14 > An: tomcat-user@jakarta.apache.org > Betreff: JNDI comp namespace > > > Dear Tomcat Users, > > > > I am using Tomcat 4 and trying to use JNDI to connect to a > data source and environment variables. I get the following > when trying to access the InitialContext via > > DataSource ds = (DataSource)initialContext.lookup( > "java:comp/env/jdbc/mydb" ); > > > > javax.naming.NameNotFoundException: Name comp is not bound in > this Context > > > > I have read all the documentation many times and cannot see > what I am doing wrong. The server.xml seems to be fine; I > can see the appropriate context entries in the tomcat manager > application. But for some reason the comp namespace does not > seem to get set up; basically Tomcat doesn't do what the > documentation says it should. > > > > Has anybody encountered this type of situation before and > found a solution? > > > > Thanks > > Tony > > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org