-->
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: Problems in cfg: Attribute "value" must be declare
PostPosted: Fri Feb 09, 2007 1:56 pm 
Newbie

Joined: Fri Feb 09, 2007 1:47 pm
Posts: 4
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


Last edited by MonkeyKnifeFight on Fri Feb 09, 2007 2:21 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 09, 2007 2:20 pm 
Newbie

Joined: Fri Feb 09, 2007 1:47 pm
Posts: 4
Actually i had Hibernate synch generate the cfg again and now i am not seeing those errors. Not sure exactly what was going on but anyway...

Chris


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.