File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Dialect class not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Dialect class not found" Watch "Dialect class not found" New topic
Author

Dialect class not found

kranthi chamarthi
Ranch Hand

Joined: May 08, 2007
Posts: 95
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
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Assuming you have hibernate3.jar in your classpath everything should be fine. Is this a stand alone Java app?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
kranthi chamarthi
Ranch Hand

Joined: May 08, 2007
Posts: 95
Yeah this is a stand alone application.
kranthi chamarthi
Ranch Hand

Joined: May 08, 2007
Posts: 95
I did set hibernate3.jar in class path still no progress. I am getting the same error.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Have you spelled the dialect correctly?
kranthi chamarthi
Ranch Hand

Joined: May 08, 2007
Posts: 95
Following is the hibernate.cfg.xml



Following is the Class containing the main method


Following is the mapping xml

Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

I'd check again, have you spelled org.hibernate.dialect.MySQLDialect correctly?
[ October 14, 2008: Message edited by: Paul Sturrock ]
Vijay Gadde
Ranch Hand

Joined: Sep 30, 2008
Posts: 54
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


Vijay Gadde
Coming together is a beginning. Keeping together is progress.. Working together is success........
vipin jain
Ranch Hand

Joined: Aug 24, 2008
Posts: 122
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>


Best Regards,<br />Vipin<br />MCA, SCJP5, SCWCD in progress
kranthi chamarthi
Ranch Hand

Joined: May 08, 2007
Posts: 95
My problem is solved. As you people said it is the problem with MySQLDialect. Thank you very much.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dialect class not found