This question already has an answer here:
- Can't parse hibernate.cfg.xml while offline 13 answers
I'm currently using http://hibernate.sourceforge.net as my namespace in my hibernate configuration files which gives me these warnings:
Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
So I tried switching hibernate.cfg.xml and all the other *.hbm.xml files to using http://www.hibernate.org/dtd. However then when I try to generate the code using hibernate tools in eclipse I get the following error message (code generation works fine with the other namespace):
org.hibernate.HibernateException: Could not parse configuration: C:\dev\workspace\DataLoad\hibernate.cfg.xml Could not parse configuration: C:\dev\workspace\DataLoad\hibernate.cfg.xml
org.dom4j.DocumentException: www.hibernate.org Nested exception: www.hibernate.org www.hibernate.org Nested exception: www.hibernate.org org.dom4j.DocumentException: www.hibernate.org Nested exception: www.hibernate.org www.hibernate.org Nested exception: www.hibernate.org
Here's my hibernate.cfg.xml:
com.mysql.jdbc.Driver jdbc:mysql://localhost:3306/findata?tcpKeepAlive=true root xxxxxxxx 2 true org.hibernate.dialect.MySQLDialect thread org.hibernate.cache.NoCacheProvider