Page 1 of 1

Unable to build EntityManagerFactory

Posted: Mon Nov 24, 2014 4:52 am
by Sajith S
I am using tomcat version 6, I got the following error when I try to follow switching to MySql tutorial.

Here is my stack trace

Code: Select all

[ERROR] 13:22:27 ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blEntityManagerFactorySecureInfo' defined in resource loaded from byte array: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: blSecurePU] Unable to build EntityManagerFactory
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: blSecurePU] Unable to build EntityManagerFactory
Caused by: org.hibernate.HibernateException: Dialect class not found: org.hibernate.dialect.MySQL5InnoDBDialect
Caused by: org.hibernate.service.classloading.spi.ClassLoadingException: Unable to load class [org.hibernate.dialect.MySQL5InnoDBDialect ]
Caused by: java.lang.ClassNotFoundException: Could not load requested class : org.hibernate.dialect.MySQL5InnoDBDialect


I have not mentioned anything about hibernate dependencies in my xml file.Would that be the problem ? Can anyone suggest me some solution to this problem.

I have made changes mentioned in the following link--http://www.programering.com/a/MTO3UzMwATQ.html.