Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 06773D8B0 for ; Tue, 9 Oct 2012 14:37:40 +0000 (UTC) Received: (qmail 73813 invoked by uid 500); 9 Oct 2012 14:37:36 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 73723 invoked by uid 500); 9 Oct 2012 14:37:36 -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 73714 invoked by uid 99); 9 Oct 2012 14:37:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2012 14:37:35 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jeremyheiler@gmail.com designates 209.85.223.173 as permitted sender) Received: from [209.85.223.173] (HELO mail-ie0-f173.google.com) (209.85.223.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2012 14:37:29 +0000 Received: by mail-ie0-f173.google.com with SMTP id 17so3906004iea.18 for ; Tue, 09 Oct 2012 07:37:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=2LehRE9o/P7PdO0fSmVREoPU89qdBvfeKON5m8qNF3E=; b=Dck2bgJcGPQUGNlekIbleVdUkdCwI+dEgodvdE7I8Kv1F/DGgZDEGyZJ6usZ1GG2Rc izEtMOPZMyzT6qxceWQs6XDHljEoigrSP09TNYRZuxUxvMbxOT6RXlNkVQBzciMPAYmD Ni+PmKWygUxUAKtCUcYvQVOvColyuOUPb7tkhKA7EZjYdahAUgQrUIjLd9mHDFHLzy0A 0Tg6IMwJvpYt81KUuzqnxqaWmXRR8JvDnBZ452+BCRkA+GZSyJEcx2g3fNkfdFu2r690 8HiRg7OzrYJOEuXRO2LL4z2HdkqPLWQYmYS05ldp1LizhwbY+0bfyQGN4OCafIDPAeGF XfyA== MIME-Version: 1.0 Received: by 10.43.133.196 with SMTP id hz4mr15780673icc.52.1349793427658; Tue, 09 Oct 2012 07:37:07 -0700 (PDT) Received: by 10.50.88.130 with HTTP; Tue, 9 Oct 2012 07:37:07 -0700 (PDT) Date: Tue, 9 Oct 2012 10:37:07 -0400 Message-ID: Subject: Tomcat managed connections (DBCP) with driver in web application. From: Jeremy Heiler To: users@tomcat.apache.org Content-Type: multipart/alternative; boundary=20cf307d052ac696c304cba1450d X-Virus-Checked: Checked by ClamAV on apache.org --20cf307d052ac696c304cba1450d Content-Type: text/plain; charset=UTF-8 I am using Tomcat 7 and having it manage my database connections with its DBCP implementation. In the past I have put ojdbc14.jar in $CATALINA_HOME/lib, which has been fine. However, some applications are being upgraded to Oracle 11g and require the ojdbc6.jar instead. If I take the jar out of $CATALINA_HOME/lib and put the correct one in each individual application, everything works fine, except for the "cannot unregister driver" error Tomcat logs. Every resource I've read thus far has said that the driver jar must be in $CATALINA_HOME/lib or DBCP wont work. Except that it appears to work just fine. Perhaps I am missing something? Are there other consequences for putting the driver in each individual webapp (when having Tomcat manage connections) and not in $CATALINA_HOME/lib? Thanks, //Jeremy --20cf307d052ac696c304cba1450d--