commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21418] New: - Example code
Date Tue, 08 Jul 2003 20:39:36 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21418>.
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(<dbdriver class>)
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


Mime
View raw message