Question

When i deploy it shows following error

Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.hibernate.SessionFactory com.quad.dao.RoleDAOImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Dialect class not found: org.hibernate.dialect.MySQLDialect

but i have hibernate jar file in lib folder.I dont understand why it is giving error.

Was it helpful?

Solution

You do not have your hibernate jar file in your classpath. Add the jars to your classpath and do a clean build.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top