hi everybody
sorry, I wrote in french in first post
--------------------
Bonjour
I'm newbie then I need your helps please
I got message error following when I try to connect to database Oracle by using hibernate 4.1.2.Final
WARN: HHH000342: Could not obtain connection to query metadata : No suitable driver found for jdbc:oracle:thin:@x.y.z.t:1521:mySI
....
ERROR: HHH000231: Schema export unsuccessful
java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:@x.y.z.t:1521:mySI
Oracle 9.0.2.0.0
jodbc ojdbc14.jar
jdk1.6.0_29
hibernate.cfg.xml:
...
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@x.y.z.t:1521:mySI</property>
<property name="hibernate.connection.username">USERNAME</property>
<property name="hibernate.connection.password">PASSWORD</property>
<property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>
...
for information: I can connect to this database by using java lib, with the same information (driver, url, user, password)
Code:
Class.forName(driver);
Connection m_Connection = DriverManager.getConnection(url,user,password);
thanks a lot
best regards
ndhai