Author | Message |
---|---|
pthorat@calstatela.edu
Posts: 6
|
Posted 22:15 Jan 23, 2016 |
I'm getting the below error when i run my UserDaoTest. Can someone help me with it?
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.apache.tomcat.jdbc.pool.DataSource] for bean with name 'dataSource' defined in class path resource [applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: org/apache/tomcat/jdbc/pool/DataSource : Unsupported major.minor version 52.0 |
cysun
Posts: 2935
|
Posted 18:20 Jan 24, 2016 |
Make sure you use Tomcat 7 and the tomcat-jdbc dependency version matches the Tomcat 7 version. |
pthorat@calstatela.edu
Posts: 6
|
Posted 19:21 Jan 24, 2016 |
Yes Professor. It worked. Thank You. |