I am building a Project from github. When I build the project on eclipse.
After configuration with my database I get this error.
Error creating bean with name 'org.springframework.jdbc.core.JdbcTemplate#0' defined in ServletContext resource [/WEB-INF/application-context.xml]: Cannot create inner bean 'com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolData Source#82d210' of type [com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource] while setting bean property 'dataSource';
nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.mysql.jdbc. jdbc2.optional.MysqlConnectionPoolDataSource] for bean with name 'com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolData Source#82d210' defined in ServletContext resource [/WEB-INF/application-context.xml];
nested exception is java.lang. ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean (BeanDefinitionValueResolver.java:282)
Please help me to solve this issue.
pom.xml
contains MySql connector, the error should not occur. How are you running in eclipse? - pmverma