-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Hibernate Dialect Exception
PostPosted: Wed Jun 13, 2007 12:45 pm 
Newbie

Joined: Wed Jun 13, 2007 12:31 pm
Posts: 2
I was deploying my proyect and this exception occur...
How can fix that problem?
C'ya

--- MBeans waiting for other MBeans ---
ObjectName: persistence.units:ear=TissCA.ear,jar=TissCA.jar,unitName=TissCA
State: FAILED
Reason: javax.persistence.PersistenceException: org.hibernate.HibernateException: Hibernate Dialect must be explicitly set
I Depend On:
jboss.jca:service=DataSourceBinding,name=TissCADatasource

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: persistence.units:ear=TissCA.ear,jar=TissCA.jar,unitName=TissCA
State: FAILED
Reason: javax.persistence.PersistenceException: org.hibernate.HibernateException: Hibernate Dialect must be explicitly set
I Depend On:
jboss.jca:service=DataSourceBinding,name=TissCADatasource


Top
 Profile  
 
 Post subject: Set the hibernate dialect
PostPosted: Wed Jun 13, 2007 12:52 pm 
Beginner
Beginner

Joined: Thu Jan 13, 2005 10:50 am
Posts: 30
Location: Minneapolis, MN
The error clearly says that you have not set the dialect in the hibernate configuration file
Do something like this
<property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</property>
in the configuration fiile.

The dialect depends on the DB you are using.

**Don't forget to rate **

_________________
** Rate me if the solution was useful **

Regards,
Paras Jain


Top
 Profile  
 
 Post subject: Re: Set the hibernate dialect
PostPosted: Wed Jun 13, 2007 1:14 pm 
Newbie

Joined: Wed Jun 13, 2007 12:31 pm
Posts: 2
[quote="parasjain01"]The error clearly says that you have not set the dialect in the hibernate configuration file
Do something like this
<property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</property>
in the configuration fiile.

The dialect depends on the DB you are using.

**Don't forget to rate **[/quote]


look, In which put it in persistense.xml file , bucause I'm not using hibernate, I'm using EJB3.0 instead but occured the same exception ...

Could you help me to solve this problem?

Sincerelly,


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 13, 2007 1:24 pm 
Beginner
Beginner

Joined: Thu Jan 13, 2005 10:50 am
Posts: 30
Location: Minneapolis, MN
Even in case of JPA with EJB3 you must be doing something like following
<persistence-unit name="sample">
<jta-data-source>java:/DefaultDS</jta-data-source>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
<property name="hibernate.hbm2ddl.auto" value="create-drop"/>
</properties>
</persistence-unit>

or in your persistence.xml you must be referring to the hibernate.cfg.xml

Since in you exception you are getting hibernate exception I am assuming that you are using hibenrate as the ORM solution

see
http://www.hibernate.org/hib_docs/entit ... ation.html
for more configuration options

_________________
** Rate me if the solution was useful **

Regards,
Paras Jain


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.