You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/07/08 22:39:36 UTC
DO NOT REPLY [Bug 21418] New: -
Example code
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