Hi,
I am new to Hibernate, I have tried to play with Hibernate examples in Eclipse, but I have always the same error.
So I have tried to start from scratch but in the "Hibernate Configurations" eclipse view, I have the same error again :
<Sessionfactory error : extendsQueue>
My config :
Windows 2000
Eclipse 3.1.0
JDK 5.0
Oracle 9 (ojdbc14-9.2.0.5.jar)
Hibernate 3.1.2
Hibernate-annotations 3.1 beta 8
Hibernate tools 3.1.0 beta 4
From scratch :
- Create a user library in Eclipse for Hibernate (add all Hibernate 3.1.0 jars)
- Create a new Java project
- Set a src source folder
- Add the user Hibernate library
- Add hibernate-annotations.jar
- Add ojdbc14-9.2.0.5.jar
Then File-->New --> Other-->Hibernate Configuration File (cfg.xml)
I set the values, everything seems fine but when I open the Hibernate Configurations view, The error
<Sessionfactory error : extendsQueue> is displayed between nodes Configuration and Database.
Please note that I dot not have yet any source code, or any mapping file, nothing. (With Hibernate examples I have the same error)
The database access seems to be OK, because I can see all tables names when I click on the "Database" node in the Hibernate view.
generated hibernate.cfg.xml :
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.connection.password">myPasswd</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@ip:port:OracleSID</property>
<property name="hibernate.connection.username">myUser</property>
<property name="hibernate.default_schema">mySchema</property>
<property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
</session-factory>
</hibernate-configuration>
I have searched on google, on google groups, on this forum, on the Hibernate FAQ : no single document on the web contains that error message !! ;-(
What's wrong ?
Thanks