Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 6771 invoked from network); 6 Sep 2004 19:31:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 6 Sep 2004 19:31:37 -0000 Received: (qmail 34516 invoked by uid 500); 6 Sep 2004 19:31:30 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 33910 invoked by uid 500); 6 Sep 2004 19:31:26 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 33897 invoked by uid 99); 6 Sep 2004 19:31:25 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jmrengifo@gmail.com designates 64.233.170.199 as permitted sender) Received: from [64.233.170.199] (HELO mproxy.gmail.com) (64.233.170.199) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 06 Sep 2004 12:31:24 -0700 Received: by mproxy.gmail.com with SMTP id 78so177256rnl for ; Mon, 06 Sep 2004 12:31:22 -0700 (PDT) Received: by 10.38.78.70 with SMTP id a70mr1559316rnb; Mon, 06 Sep 2004 12:31:22 -0700 (PDT) Received: by 10.38.15.39 with HTTP; Mon, 6 Sep 2004 12:31:22 -0700 (PDT) Message-ID: <6e44abd40409061231a6bc42@mail.gmail.com> Date: Mon, 6 Sep 2004 15:31:22 -0400 From: Jonathan Rengifo Reply-To: Jonathan Rengifo To: tomcat-dev@jakarta.apache.org Subject: Problem upgrading to Tomcat 5 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi all... I am preparing a new production web sever configured with Apache 2 serving static content and Tomcat 5.0.27 serving dynamic content via TCP JK2 connector. In Tomcat, I am trying to configure one database Resource element for various Context, so I decide to configure one Resource element into the GlobalNamingResources element, and then link it via ResourceLink element on the Context I need to have; this configuration don=B4t work, it throws me an exception on tomcat start up: java.lang.RuntimeException: com.MyCompany.db.ManagerException: org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver' This happens although the driver is locate on my lib application, and I try to cut an pasted on $TOMCAT_HOME/shared/lib and still get the same output result. That configuration used to work on Tomcat 4, but don't know what happened or change on new releases. I've read the "Server Configuration Reference" documentation from "http://manuals.thexdershome.com/tomcat-5.0/config/context.html" with no success (There are examples using my server.xml configuration). So, after all I just copy the Resource element on each Context and it works, but believe this is not simple the best way to do this... Here is an example of what I've done: .... .... =20 =20 factory org.apache.commons.dbcp.BasicDataSourceFactory url jdbc:oracle:thin:@myDatabaseServer:port:user password myPassword maxActive 20 maxWait -1 driverClassName oracle.jdbc.driver.OracleDriver username myUser maxIdle 10 =20 ... ... ... =20 =20 =20 =20 ..... ..... ..... I was thinking too on move to Tomcat 5.0.28 relesed few days ago, to see if problem solves, but don=B4t know what are the advantages and bugfixes it has regarding 5.0.27 release I am using, can you please tell me some or where to read them? Any help or comments you have would be very appreciated... Regards Jonathan --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org