Problem:
[4/9/13 11:53:03:219 EDT] 00000037 webapp E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor]: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/data-access.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: unknown Oracle major version [11]
Solution:
in data-access.xml , add below entry:
<prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop>
Looks like below:
<property name="hibernateProperties">
<props>
<prop key="hibernate.query.factory_class">
org.hibernate.hql.classic.ClassicQueryTranslatorFactory
</prop>
<prop key="hibernate.show_sql">${hibernate.show_sql}</prop>
<prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop>
</props>
</property>
Tks !!
ReplyDeleteWorked !
You are the best one!
ReplyDeleteBest regards from Galicia, Spain!
Jose