-->
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.  [ 1 post ] 
Author Message
 Post subject: Dialect issues for Excel
PostPosted: Tue May 17, 2011 7:29 am 
Newbie

Joined: Tue May 17, 2011 7:26 am
Posts: 1
I am a beginner to hibernate, trying to learn this with MS access.. I have the configurations set and the programs ready. When I try to the use the dialect as defined below.

Code:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<hibernate-configuration>
    <session-factory>
        <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
        <property name="dialect">NHibernate.JetDriver.JetDialect, NHibernate.JetDriver</property>
        <property name="connection.driver_class">NHibernate.JetDriver.JetDriver, NHibernate.JetDriver</property>
        <property name="connection.connection_string">Provider=Microsoft.Jet.OLEDB.4.0;Data Source=YourDatabaseFilePathHere.mdb</property>
    </session-factory>
</hibernate-configuration>



I get the below exception.

Code:
org.hibernate.HibernateException: Dialect class not found: NHibernate.JetDriver.JetDialect, NHibernate.JetDriver
   at org.hibernate.dialect.resolver.DialectFactory.constructDialect(DialectFactory.java:159)
   at org.hibernate.dialect.resolver.DialectFactory.buildDialect(DialectFactory.java:108)
   at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:152)
   at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2836)
   at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2832)
   at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1843)
   at FirstHiber.main(FirstHiber.java:14)
Caused by: java.lang.ClassNotFoundException: NHibernate.JetDriver.JetDialect, NHibernate.JetDriver
   at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)


I believe it doesnt contain the proper jar or something. Can someone advise


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

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.