-->
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.  [ 8 posts ] 
Author Message
 Post subject: Dialect class not found when Reverse Engineeribng
PostPosted: Thu Nov 24, 2005 10:13 am 
Newbie

Joined: Thu Nov 24, 2005 10:03 am
Posts: 7
I'm trying to reverse engineer a Database (I tried FrontBase and MySQL) using Eclipse 3.1.1/Hibernate-Tools3.1.0-beta1.

Everytime when I hit the 'Finish' button in the Hibernate Artifact Generation Wizard, I get the following error message
!ENTRY org.hibernate.eclipse.console 4 4 2005-11-24 14:48:07.340
!MESSAGE Error under artifact generation
!STACK 0
org.hibernate.HibernateException: Dialect class not found: org.hibernate.dialect.FrontbaseDialect


I checked ...
* the jar file containing the necessary drivers are in the Project path
* I only get this far anyway because I didn't add a driver class (otherwise it drops out there).

I've googled through the world now and checked for any possible setting etc. but nothing seems to help (and I haven't seen any hints in any docs yet)

Any idea where I am missing something. I'm running out of ideas.

-_ Rene


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 24, 2005 10:41 am 
Senior
Senior

Joined: Mon Aug 22, 2005 5:45 am
Posts: 146
it has nothing to do with the driver class. what is missing is the hibernate.jar.

add hibernate.jar to your eclipse project libs.

_________________
Please don't forget to give credit, if my posting helped to solve your problem.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 24, 2005 10:52 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the artifact generator does not use the hibernate jars from the project classpath since it would create classloader issue with the hibernate.jar used in the tools.

make sure you do not have any hibernate.jar on the console configuration classpath.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 24, 2005 10:57 am 
Newbie

Joined: Thu Nov 24, 2005 10:03 am
Posts: 7
I have added the hibernate.jar to the "Java Build Path->Libraries", directly to the project (as external jars) and in several other places before. Without any effect.

Where exactly do I have add these?

-- René


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 24, 2005 11:05 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
to the java project is fine. what i talked about was that you should not add them to the console configuration which you havent. i cant check if there should be any issues with org.hibernate.dialect.FrontbaseDialect since im not near a source tree.

make sure you have spelled the dialect correctly with upper/lower case

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 24, 2005 11:32 am 
Newbie

Joined: Thu Nov 24, 2005 10:03 am
Posts: 7
Thank you Thank you ... THANK YOU

I was using the "Configuration File" Wizard to begin with.

But the wizard sets the wrong dialect class org.hibernate.dialect.FrontbaseDialect
but in the class in the JAR file it is FrontBaseDialect.

Mhh where can I file this as a bug!?

Now one last question ;-) where do I put the JDBC Driver?

-- René


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 24, 2005 11:43 am 
Newbie

Joined: Thu Nov 24, 2005 10:03 am
Posts: 7
Okay forget my last question one ... I know in the Console Configuration (and yep I'm embarrased about that one).

Again Thank you,

René


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 25, 2005 8:23 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
..put the spelling error in our jira

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 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.