Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 30354 invoked from network); 5 Jan 2005 21:53:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 5 Jan 2005 21:53:24 -0000 Received: (qmail 38494 invoked by uid 500); 5 Jan 2005 21:52:59 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 38473 invoked by uid 500); 5 Jan 2005 21:52:58 -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 38454 invoked by uid 99); 5 Jan 2005 21:52:58 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from dpsmailout.dpsk12.org (HELO dpsmailout.dpsk12.org) (164.92.10.41) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 05 Jan 2005 13:52:55 -0800 Received: from POSTOFFICE2.dpsk12.org ([164.92.10.67]) by dpsmailout.dpsk12.org with Microsoft SMTPSVC(6.0.3790.0); Wed, 5 Jan 2005 14:53:27 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C4F370.FCB7B6B3" Subject: Connection Pooling with Tomcat 4.1 and SQL Server 2000 Date: Wed, 5 Jan 2005 14:53:27 -0700 Message-ID: <3A0B16ADCF75794B86AEDD16A0E810D9FEB8B8@POSTOFFICE2.dpsk12.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Connection Pooling with Tomcat 4.1 and SQL Server 2000 Thread-Index: AcTzcPzPrAh3/+kvQ4WboQuyrETTwg== From: "Johnson, Jay" To: "Tomcat Users List" X-OriginalArrivalTime: 05 Jan 2005 21:53:27.0677 (UTC) FILETIME=[FCD2B2D0:01C4F370] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C4F370.FCB7B6B3 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I am trying to establish a connection pool in Tomcat 4.1 to SQL Server 2000. Looking at the SQL Server trace utility, it appears Tomcat connects with the correct username/password and then the following exception is thrown: =20 java.lang.UnsupportedOperationException at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSourc e.java:161). =20 I have taken the following steps: =20 1) Moved the driver jar files to /common/lib/ 2) Modified the Server.xml file 3) Modified the web.xml file of the application =20 Here is my Server.xml entry: =20 driverClassName com.microsoft.jdbc.sqlserver.SQLServerDriver url jdbc:microsoft:sqlserver://localhost:1433 username jay password jay maxActive 20 maxIdle 10 maxWait 100 =20 Here is my entry in the web.xml file: =20 DB Connection jdbc/test javax.sql.DataSource Container=20 =20 Are any additional entries needed? Any help would be greatly appreciated! =20 Thanks, Jay Johnson ------_=_NextPart_001_01C4F370.FCB7B6B3--