Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 59760 invoked from network); 8 Jul 2003 20:37:35 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 8 Jul 2003 20:37:35 -0000 Received: (qmail 27464 invoked by uid 97); 8 Jul 2003 20:40:07 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@nagoya.betaversion.org Received: (qmail 27457 invoked from network); 8 Jul 2003 20:40:06 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 8 Jul 2003 20:40:06 -0000 Received: (qmail 57283 invoked by uid 500); 8 Jul 2003 20:37:05 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 57242 invoked from network); 8 Jul 2003 20:37:05 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 8 Jul 2003 20:37:05 -0000 Received: (qmail 27413 invoked by uid 50); 8 Jul 2003 20:39:36 -0000 Date: 8 Jul 2003 20:39:36 -0000 Message-ID: <20030708203936.27412.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: commons-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 21418] New: - Example code X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21418 Example code Summary: Example code Product: Commons Version: 1.0 Final Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Minor Priority: Other Component: Dbcp AssignedTo: commons-dev@jakarta.apache.org ReportedBy: david.badia@wachovia.com I am using DB2 v8.1.0.36, and have tried running the example ManualPoolingDriverExample with the DB2 JDBC driver in db2jcc.jar, but was unsucessful, getting the following error: org.apache.commons.dbcp.DbcpException: java.sql.SQLException: No suitable driver After some experimentation, I realized that simply adding Class.forName() fixed the issue. If you could include this snippit in your sample code, it may save some potential aggrevation in the future. Otherwise, the DBCP is great! Thanks --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org