dbcp no suitable driver
Posted: Thu Oct 22, 2009 7:19 am
Hi,
I'm getting an exception when trying the demo site after I finally built it.
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'com.mysql.jdbc.Driver' for connect URL 'http://localhost:3306/mydb'
...
Caused by: java.sql.SQLException: No suitable driver
the driver is available (I've put the jar in WEB-INF/lib, then in my tomcat's lib, then in both still facing the same problem). And when I remove it I've got another (and more expected) exception (ClassNotFoundException). So the driver class is found. This looks like a classloader issue, maybe?
It might not be coming from your side, but any help would be appreciated...
Thanx!
I'm getting an exception when trying the demo site after I finally built it.
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'com.mysql.jdbc.Driver' for connect URL 'http://localhost:3306/mydb'
...
Caused by: java.sql.SQLException: No suitable driver
the driver is available (I've put the jar in WEB-INF/lib, then in my tomcat's lib, then in both still facing the same problem). And when I remove it I've got another (and more expected) exception (ClassNotFoundException). So the driver class is found. This looks like a classloader issue, maybe?
It might not be coming from your side, but any help would be appreciated...
Thanx!