Hey folks I am getting an error in my hibernate.cfg.xml file that i can't figure out. Here is the stack:
Code:
Feb 9, 2007 9:44:55 AM org.hibernate.util.XMLHelper$ErrorLogger error
SEVERE: Error parsing XML: /hibernate.cfg.xml(12) Attribute "value" must be declared for element type "property".
Feb 9, 2007 9:44:55 AM org.hibernate.util.XMLHelper$ErrorLogger error
SEVERE: Error parsing XML: /hibernate.cfg.xml(14) Attribute "value" must be declared for element type "property".
Feb 9, 2007 9:44:55 AM org.hibernate.util.XMLHelper$ErrorLogger error
SEVERE: Error parsing XML: /hibernate.cfg.xml(15) Attribute "value" must be declared for element type "property".
Feb 9, 2007 9:44:55 AM org.hibernate.util.XMLHelper$ErrorLogger error
SEVERE: Error parsing XML: /hibernate.cfg.xml(16) Attribute "value" must be declared for element type "property".
Feb 9, 2007 9:44:55 AM org.hibernate.util.XMLHelper$ErrorLogger error
SEVERE: Error parsing XML: /hibernate.cfg.xml(17) Attribute "value" must be declared for element type "property".
Feb 9, 2007 9:44:55 AM org.hibernate.util.XMLHelper$ErrorLogger error
SEVERE: Error parsing XML: /hibernate.cfg.xml(18) Attribute "value" must be declared for element type "property".
Feb 9, 2007 9:44:55 AM org.hibernate.util.XMLHelper$ErrorLogger error
SEVERE: Error parsing XML: /hibernate.cfg.xml(19) Attribute "value" must be declared for element type "property".
Feb 9, 2007 9:44:55 AM org.hibernate.util.XMLHelper$ErrorLogger error
SEVERE: Error parsing XML: /hibernate.cfg.xml(20) Attribute "value" must be declared for element type "property".
Exception in thread "main" org.hibernate.MappingException: invalid configuration
The error is clear but the problem is i made sure to have the value for each property. Here is my cfg file:
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd" >
<hibernate-configuration>
<session-factory>
<!-- datasource connection properties -->
<property name="hibernate.connection.datasource" value="myDataSource" />
<!-- dialect for Oracle 9 -->
<property name="hibernate.dialect" value="org.hibernate.dialect.Oracle9Dialect" />
<property name="hibernate.show_sql" value="false" />
<property name="hibernate.transaction.factory_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" />
<property name="hibernate.connection.driver_class" value="oracle.jdbc.driver.OracleDriver" />
<property name="hibernate.connection.url" value="jdbc:oracle:thin:@someplace:1521:DB" />
<property name="hibernate.connection.username" value="user" />
<property name="hibernate.connection.password" value="pass" />
<mapping resource="mapping1.hbm.xml" />
<mapping resource="mapping2.hbm.xml" />
</session-factory>
</hibernate-configuration>
I'm trying to use hibernate synchronizer to do this small little utility app but these errors are baffling me.
EDIT: I am using hibernate 3 and eclipse 3.2.
Thanks for any help,
Chris