This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Dialect class not found

 
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,
I am new to hibernate and i am trying to learn it. I have gone through some tutorials and did a sample application. Now when i run the Program i am getting the following error
org.hibernate.HibernateException: Dialect class not found: org.hibernate.dialect.MYSQLDialect
I unzipped the hibernate3.jar and found MYSQLDialect.class in correct location.
Can anyone suggest me how to solve this error.
Thanks
Kranthi Kumar
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming you have hibernate3.jar in your classpath everything should be fine. Is this a stand alone Java app?
 
kranthi chamarthi
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah this is a stand alone application.
 
kranthi chamarthi
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did set hibernate3.jar in class path still no progress. I am getting the same error.
 
Paul Sturrock
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you spelled the dialect correctly?
 
kranthi chamarthi
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Following is the hibernate.cfg.xml



Following is the Class containing the main method


Following is the mapping xml

 
Paul Sturrock
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd check again, have you spelled org.hibernate.dialect.MySQLDialect correctly?
[ October 14, 2008: Message edited by: Paul Sturrock ]
 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems like your doing mistake in Direct URL itself here is what I was using in my application

Hope it will solve your problem then
Thanks,Vijay Gadde
 
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello kranthi kumar,

in yyour code your are using MYSQLDialect : Here Y is caps , it must be require small letter i.e. MySQLDialect

<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
 
kranthi chamarthi
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My problem is solved. As you people said it is the problem with MySQLDialect. Thank you very much.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!