-->
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.  [ 3 posts ] 
Author Message
 Post subject: trouble finding dialect class
PostPosted: Tue Apr 12, 2005 5:49 pm 
Newbie

Joined: Tue Nov 11, 2003 6:24 pm
Posts: 17
I am using the Eclipse plugin and having trouble with the plugin loading the dialect class from hibernate3.jar. Do I need to do anything special to include hibernate3.jar in my classpath so that the plugin finds the classes it needs? I have hibernate3.jar in the build path for my application.

I am getting the exception when I attempt to reverse engineer my database using the Hibernate Artifact Generation wizard.

!SUBENTRY 2 org.hibernate.eclipse.console.HibernateConsolePlugin 4 150 2005-04-12 16:38:31.844
!MESSAGE Dialect class not found: net.sf.hibernate.dialect.SQLServerDialect
!STACK 0
org.hibernate.HibernateException: Dialect class not found: net.sf.hibernate.dialect.SQLServerDialect
at org.hibernate.dialect.Dialect.getDialect(Dialect.java:503)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:51)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1508)
at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:36)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$3.execute(ArtifactGeneratorWizard.java:213)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:77)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration(ArtifactGeneratorWizard.java:210)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:147)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:127)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:95)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 12, 2005 7:10 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
The base package has been changed in Hibernate 3.0 so its no longer net.sf.hibernate its org.hibernate . Change your dialect reference appropriately.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 12, 2005 7:59 pm 
Newbie

Joined: Tue Nov 11, 2003 6:24 pm
Posts: 17
yes that was the problem. thanks!


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