I am working on a spring and hibernate web application MySQLDialect not found -
when deploy shows following error
caused by: org.springframework.beans.factory.beancreationexception: not autowire field: private org.hibernate.sessionfactory com.quad.dao.roledaoimpl.sessionfactory; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name 'sessionfactory' defined in servletcontext resource [/web-inf/mvc-dispatcher-servlet.xml]: invocation of init method failed; nested exception org.hibernate.hibernateexception: dialect class not found: org.hibernate.dialect.mysqldialect
but have hibernate jar file in lib folder.i dont understand why giving error.
you not have hibernate jar file in classpath. add jars classpath , clean build.
Comments
Post a Comment