Home  >  Forum  >  Spring
Post New Query

Cannot load JDBC driver class 'com.mysql.jdbc.Driver'

joined on
November 18,2013
Asked on December 22,2013
Hi All,
 I am spring security test app. I am accessing user id and password  from database. While running application got the below error. 

Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'

I am using common dbcp to connect with my mysql. Guys  help me to solve it.

joined on
March 14,2013
Replied on December 22,2013

Check your pom.xml or lib directory for the  mysql-connector-java jar.

you can append below code snippet in you pom.xm

joined on
May 14,2017
Replied on May 14,2017

Hi Arvind,

Wow Super man.. it is working fine .. thank you so much...

Write Answer

Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us