Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
3.0.5
Full stack trace of any exception that occurs:
INFO: Mapping class: co.com.unionsoluciones.sofia.cartera.model.bo.AmortizacionCredito -> amortizacioncredito_amc
03-Nov-2005 10:11:37 org.hibernate.util.XMLHelper$ErrorLogger error
SEVERE: Error parsing XML: XML InputStream(57) Element type "property" must be followed by either attribute specifications, ">" or "/>".
03-Nov-2005 10:11:37 org.hibernate.cfg.Configuration addInputStream
SEVERE: Could not configure datastore from input stream
org.dom4j.DocumentException: Error on line 57 of document : Element type "property" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "property" must be followed by either attribute specifications, ">" or "/>".
at org.dom4j.io.SAXReader.read(SAXReader.java:355)
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:398)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:631)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1058)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:269)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:318)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:81)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:66)
at co.com.unionsoluciones.sofia.cartera.utils.SpringTestSofia.setUp(SpringTestSofia.java:38)
at co.com.unionsoluciones.sofia.cartera.model.TestDaos.setUp(TestDaos.java:65)
at junit.framework.TestCase.runBare(TestCase.java:125)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Name and version of the database you are using:
MS SQL
I am trying to migrato to version 3.0.5, from version 2. I have followed each step in "http://www.hibernate.org/250.html". However, this error appears....I have double-checked my xml files, and they were working fine with version 2. I used this ant task to change the xml files:
<replace dir="${build.hibernate.dir}" value="<hibernate-
mapping default-lazy="false" >">
<include name="**/*.hbm.xml"/>
<replacetoken><![CDATA[<hibernate-mapping>]]></replacetoken>
</replace>
<replace dir="${build.hibernate.dir}" value="Hibernate Mapping
DTD 3.0">
<include name="**/*.hbm.xml"/>
<replacetoken>Hibernate Mapping DTD 2.0</replacetoken>
</replace>
<replace dir="${build.hibernate.dir}" value="hibernate-mapping-
3.0.dtd">
<include name="**/*.hbm.xml"/>
<replacetoken>hibernate-mapping-2.0.dtd</replacetoken>
</replace>
Is this a known issue, or any clues where to find the solution for this.....
Thanks a lot.
Julian