Вопрос

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.

Это было полезно?

Решение

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top