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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to