From dbh001@kooee.com.au Mon Jan 6 04:45:52 2003 Return-Path: Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 21446 invoked by uid 98); 6 Jan 2003 04:45:52 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Received: (qmail 21128 invoked from network); 6 Jan 2003 04:45:49 -0000 Received: from daedalus.apache.org (HELO apache.org) (63.251.56.142) by nagoya.betaversion.org with SMTP; 6 Jan 2003 04:45:49 -0000 Received: (qmail 29877 invoked by uid 500); 6 Jan 2003 04:44:22 -0000 Received: (qmail 29860 invoked from network); 6 Jan 2003 04:44:21 -0000 Received: from smtp03.iprimus.com.au (210.50.30.52) by daedalus.apache.org with SMTP; 6 Jan 2003 04:44:21 -0000 Received: from smtp02.iprimus.net.au (210.50.76.70) by smtp03.iprimus.com.au (6.7.010) id 3E0FA3A200080F33 for commons-user@jakarta.apache.org; Mon, 6 Jan 2003 15:44:31 +1100 Received: from w9b1jqmyjsd9ds1 ([211.26.152.6]) by smtp02.iprimus.net.au with Microsoft SMTPSVC(5.0.2195.5600); Mon, 6 Jan 2003 15:44:29 +1100 Message-ID: <00b301c2b53f$3fa43b50$0200a8c0@w9b1jqmyjsd9ds1> From: "David Hemingway" To: Subject: DBCP: java.sql.SQLException: Cannot load JDBC driver class 'null' Date: Mon, 6 Jan 2003 15:51:16 +1100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00B0_01C2B59B.72A3A200" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-OriginalArrivalTime: 06 Jan 2003 04:44:29.0921 (UTC) FILETIME=[4CB33D10:01C2B53E] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------=_NextPart_000_00B0_01C2B59B.72A3A200 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, Sorry if this has been addressed before on this list but I have not seen = it. I have followed the instructions in = http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-= howto.html. I am not sure if this is a problem with tomcat or with dbcp. I can get the setup to work 100% under win32 but using the same settings = under linux I get:=20 java.sql.SQLException: Cannot load JDBC driver class 'null' at = org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.= java:529) at = org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.jav= a:312) I have seen this problem raised in many places but no one has seemed to = know the correct answer. My configuration is as follows: Linux - Red Hat 7.3 Apache 1.3.27 Tomcat 4.1.12 LE Oracle 9i Pool 1.0 DBCP 1.0 Collections 2.0 common/lib/commons-collections.jar common/lib/commons-dbcp.jar common/lib/commons-pool.jar common/lib/classes12.jar (with the javax.sql removed) server.xml: factory org.apache.commons.dbcp.BasicDataSourceFactory driverClassName oracle.jdbc.driver.OracleDriver url jdbc:oracle:thin:@192.168.0.10:1521:lawol username lawonline password Le12No06 maxActive 10 maxIdle 10 maxWait -1 = usernamesa password driverClassName org.hsql.jdbcDriver url jdbc:HypersonicSQL:database mail.smtp.host localhost web.xml: DB Connection jdbc/myoracle javax.sql.DataSource Container Any help would be very much appreciated. Thank you regards, David Hemingway ------=_NextPart_000_00B0_01C2B59B.72A3A200--