Hi everyone,
I am using Liferay CE 6.1, tomcat 7.
I am developing custom portlets in my liferay project.
I am connecting to external database MySQL.
I need to add hibernate3.jar to implement my custom API's in my portlet.
I tried adding the hibernate3.jar explicitly in my WEB-INF/lib folder and also tried adding through liferay-plugin-package.properties to include the dependency jar which liferay uses.
But I get the same error, saying org.hibernate.HibernateException: Could not instantiate dialect class
BeanLocator not set for servlet context,
java.lang.ClassCastException: org.hibernate.dialect.MySQLDialect cannot be cast to org.hibernate.dialect.Dialect.
org.hibernate.HibernateException: Could not instantiate dialect class.
Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferayHibernateSessionFactory' defined in ServletContext resource [/WEB-INF/classes/META-INF/hibernate-spring.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Could not instantiate dialect class.
I am not able to go forward until I get rid of this problem, please I need help, thanks in advance...
Please sign in to flag this as inappropriate.