Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 33427 invoked from network); 20 Sep 2006 07:35:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Sep 2006 07:35:39 -0000 Received: (qmail 24535 invoked by uid 500); 20 Sep 2006 07:35:19 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 24491 invoked by uid 500); 20 Sep 2006 07:35:18 -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 24453 invoked by uid 99); 20 Sep 2006 07:35:16 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Sep 2006 00:35:16 -0700 Authentication-Results: idunn.apache.osuosl.org header.from=acharya_sam@yahoo.com; domainkeys=good X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS,HTML_20_30,HTML_MESSAGE,HTML_NONELEMENT_20_30 DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from ([206.190.48.173:33306] helo=web52410.mail.yahoo.com) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 99/C0-01762-C2FE0154 for ; Wed, 20 Sep 2006 00:35:09 -0700 Received: (qmail 16233 invoked by uid 60001); 20 Sep 2006 07:35:05 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=gDc8tVnrXLDfNgSV/wDRbE6gbreyrW70dHhxNfo6c6ZhoN4i4TRtSmlB85IDGlrFOqGYlVbUp+FUH5CHSHDkwO0dxAUxCm63krOxOCYc4IeLO7oTDmCDpnj+gGwk4bjtTM7au3d28LFFuEyu63/4Guoh2DUFxfGHU1eIPqsjyI0= ; Message-ID: <20060920073505.16231.qmail@web52410.mail.yahoo.com> Received: from [203.193.164.99] by web52410.mail.yahoo.com via HTTP; Wed, 20 Sep 2006 00:35:05 PDT Date: Wed, 20 Sep 2006 00:35:05 -0700 (PDT) From: Sameer Acharya Subject: RE: Database connection pooling in Tomcat 5.5 To: Tomcat Users List In-Reply-To: <00da01c6db5a$ef0ec520$800101df@utrsch.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-937256652-1158737705=:15364" Content-Transfer-Encoding: 8bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --0-937256652-1158737705=:15364 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I have a datasource defined similar to yours I get this error when I try to use ds.getConnection("username", "password"); but if I just use ds.getConnection(); it works fine. -Sameer Darren Hall wrote: Is there any other information I can supply to help people help me understand why I'm getting this error (below)? > I've made some progress on this. I'm now receiving a "SQLNestedException: > Cannot create PoolableConnectionFactory" error when calling getConnection > on the DataSource object retrieved from my connection pool. Here is the > stack trace: > > org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create > PoolableConnectionFactory (ORA-01017: invalid username/password; logon > denied) > at >org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSourc e.java:855) > at > org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.ja va:540) > at > org.federallabs.labs.LaboratorySearchAction.execute(LaboratorySearchAction.j ava:99) > > You are likely connecting to the wrong catalog. Is the pool parameter > defaultCatalog set? That's specified in my Context, correct? If so, then no, I don't have my defaultCatalog parameter set. Here is my context.xml file (comments removed, as well as domain uname and passwd) debug="5" reloadable="true" crossContext="true"> type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver" url="jdbc:oracle:thin:@devdb1.(mydomain).com:1521:flcdb" username="(uname)" password="(passwd)" maxActive="20" maxIdle="10" maxWait="-1" removeAbandoned="true" moveAbandonedTimeout="180" logAbandoned="true"/> --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org "All that is necessary for the triumph of evil is that good men do nothing." Edmund Burke -Sameer --------------------------------- Stay in the know. Pulse on the new Yahoo.com. Check it out. --0-937256652-1158737705=:15364--