Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate Dialect Error

 
Selvakumar Kumarasamy
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a problem in Hibernate. I have deveoloped a simple web application which uses hibernate to access DB2 Database. Whenever I start the server freshly and run the application it's working fine. But if I am updating anything in the application and publish it to the server I am not able to query the database and I am getting the following error. If I again restart the server it is working fine. Can anyonle help.

[5/14/08 17:34:49:482 IST] 00000029 SystemErr R WARNING: Found unrecognized persistence provider "org.hibernate.ejb.HibernatePersistence" in place of OpenJPA provider. This provider's properties will not be used.
[5/14/08 17:34:49:779 IST] 00000029 SystemErr R javax.persistence.PersistenceException: org.hibernate.HibernateException: Could not instantiate dialect class
[5/14/08 17:34:49:779 IST] 00000029 SystemErr R at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:737)
[5/14/08 17:34:49:779 IST] 00000029 SystemErr R at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:121)
[5/14/08 17:34:49:779 IST] 00000029 SystemErr R at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)


[5/14/08 17:34:49:779 IST] 00000029 SystemErr R Caused by: org.hibernate.HibernateException: Could not instantiate dialect class
at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:84)
at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:42)
at org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:426)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:128)
===========================================================================

my persistence.xml content is as follows:
============================================

<property name="hibernate.dialect" value="org.hibernate.dialect.DB2Dialect"/>
<property name="hibernate.cache.provider_class" value="org.hibernate.cache.EhCacheProvider"/>
<property name="hibernate.hbm2ddl.auto" value="update"/>
<property name="hibernate.show_sql" value="true"/>
<property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.WebSphereExtendedJTATransactionLookup"/>
 
Cristina ac
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have the same error, but i'm working in Weblogic Server 10 MP2 and for persistence JPA and hibernate.

Could someone tell me how to solve?

Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic