-->
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.  [ 2 posts ] 
Author Message
 Post subject: what will cause this exception
PostPosted: Wed Jul 19, 2006 2:59 am 
Newbie

Joined: Wed Jul 19, 2006 12:53 am
Posts: 3
12:23:55,866 WARN [UserSuppliedConnectionProvider] No connection properties specified - the user must supply JDBC connections
12:23:55,866 WARN [UserSuppliedConnectionProvider] No connection properties specified - the user must supply JDBC connections
org.hibernate.HibernateException: database product name cannot be null
at org.hibernate.dialect.DialectFactory.determineDialect(DialectFactory.java:57)
at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:39)
at org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:374)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:110)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1463)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1004)
at myHibernateTry.MyHibernateRun.<init>(MyHibernateRun.java:22)
at myHibernateTry.MyHibernateRun.main(MyHibernateRun.java:41)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 19, 2006 10:31 am 
Newbie

Joined: Fri Jun 30, 2006 5:30 pm
Posts: 13
Do you have something like this in your hibernate config?

<property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>

Also these:

<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>

<!-- Database connection settings (only needed for non-container driver class -->
<property name="connection.url">jdbc:oracle:thin:@host:port:sid</property>
<property name="connection.username">user</property>
<property name="connection.password">pass</property>


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