From tomcat-user-return-106278-apmail-jakarta-tomcat-user-archive=jakarta.apache.org@jakarta.apache.org Tue Jul 27 07:09:32 2004 Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 2663 invoked from network); 27 Jul 2004 07:09:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 27 Jul 2004 07:09:32 -0000 Received: (qmail 77201 invoked by uid 500); 27 Jul 2004 07:09:01 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 77180 invoked by uid 500); 27 Jul 2004 07:09:01 -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 77165 invoked by uid 99); 27 Jul 2004 07:09:01 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [217.76.146.203] (HELO smtp-01.servidoresdns.net) (217.76.146.203) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 27 Jul 2004 00:08:58 -0700 Received: from pedro1 (unknown [80.28.250.152]) by smtp-01.servidoresdns.net (Postfix) with SMTP id 48F5E2D1E28 for ; Tue, 27 Jul 2004 09:08:51 +0200 (CEST) From: "Pedro Nevado" To: "Tomcat Users List" Subject: RE: Tomcat Datasource Date: Tue, 27 Jul 2004 09:04:05 +0200 Message-ID: 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 IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N In case it helps, have a look a this parameter: factory org.apache.commons.dbcp.BasicDataSourceFactory Pedro -----Mensaje original----- De: Bussie, Andre D [mailto:andre.d.bussie@lmco.com] Enviado el: lunes, 26 de julio de 2004 20:57 Para: tomcat-user@jakarta.apache.org Asunto: Tomcat Datasource I'm using Tomcat 5.0.19. I configured a datasource via the Tomcat Admin tool to configure a datatsource listed below is the server.xml file settings for the datasource maxWait 5000 maxActive 4 password url jdbc:hsqldb.hsql://localhost driverClassName org.hsqldb.jdbcDriver maxIdle 2 username sa However when I try to access the datasource from a jsp file I get the following error 2004-07-26 10:42:19 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception javax.naming.NameNotFoundException: Name jdbc/phone is not bound in this Context Code snippet listed below <% InitialContext ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/phone"); Connection conn = ds.getConnection(); try{ Any suggestions on what can be causing this error. Why isn't in the context and how do I bind it to the context? --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org