title: Hibernate issue with using http://www.hibernate.org/dtd
body: <p>I'm currently using <a href="http://hibernate.sourceforge.net" rel="nofollow">http://hibernate.sourceforge.net</a> as my namespace in my hibernate configuration files which gives me these warnings:</p>
  
  <blockquote>
    <p>Recognized obsolete hibernate namespace
    <a href="http://hibernate.sourceforge.net/" rel="nofollow">http://hibernate.sourceforge.net/</a>. Use namespace
    <a href="http://www.hibernate.org/dtd/" rel="nofollow">http://www.hibernate.org/dtd/</a> instead. Refer to Hibernate 3.6
    Migration Guide!</p>
  </blockquote>
  
  <p>So I tried switching hibernate.cfg.xml and all the other *.hbm.xml files to using <a href="http://www.hibernate.org/dtd" rel="nofollow">http://www.hibernate.org/dtd</a>. 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):</p>
  
  <blockquote>
    <p>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<br>
    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</p>
  </blockquote>
  
  <p>Here's my hibernate.cfg.xml:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;!DOCTYPE hibernate-configuration PUBLIC
          "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
          "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"&gt;
  
  &lt;hibernate-configuration&gt;
      &lt;session-factory&gt;
          &lt;!-- Database connection settings --&gt;
          &lt;property name="connection.driver_class"&gt;
              com.mysql.jdbc.Driver
          &lt;/property&gt;
          &lt;property name="connection.url"&gt;
              jdbc:mysql://localhost:3306/findata?tcpKeepAlive=true
          &lt;/property&gt;
          &lt;property name="connection.username"&gt;root&lt;/property&gt;
          &lt;property name="connection.password"&gt;xxxxxxxx&lt;/property&gt;
  
          &lt;property name="connection.pool_size"&gt;2&lt;/property&gt;
          &lt;property name="show_sql"&gt;true&lt;/property&gt;
          &lt;property name="dialect"&gt;
              org.hibernate.dialect.MySQLDialect
          &lt;/property&gt;
          &lt;property name="current_session_context_class"&gt;thread&lt;/property&gt;
          &lt;property name="cache.provider_class"&gt;
              org.hibernate.cache.NoCacheProvider
          &lt;/property&gt;
  
          &lt;mapping resource="conf/Alert.hbm.xml" /&gt;
          &lt;mapping resource="conf/Entity.hbm.xml" /&gt;
          &lt;mapping resource="conf/FactData.hbm.xml" /&gt;
          &lt;mapping resource="conf/TimeEvent.hbm.xml" /&gt;
          &lt;mapping resource="conf/User.hbm.xml" /&gt;
          &lt;mapping resource="conf/AlertTarget.hbm.xml" /&gt;
          &lt;mapping resource="conf/LogAlert.hbm.xml" /&gt;
          &lt;mapping resource="conf/RepeatType.hbm.xml" /&gt;
          &lt;mapping resource="conf/Schedule.hbm.xml" /&gt;
          &lt;mapping resource="conf/Task.hbm.xml" /&gt;
          &lt;mapping resource="conf/JobQueue.hbm.xml" /&gt;
          &lt;mapping resource="conf/LogTask.hbm.xml" /&gt;
          &lt;mapping resource="conf/Exclude.hbm.xml" /&gt;
          &lt;mapping resource="conf/LogNotification.hbm.xml" /&gt;
          &lt;mapping resource="conf/Job.hbm.xml" /&gt;
          &lt;mapping resource="conf/Metric.hbm.xml" /&gt;
          &lt;mapping resource="conf/EntityGroup.hbm.xml" /&gt;
          &lt;mapping resource="conf/ExtractSingle.hbm.xml" /&gt;
      &lt;/session-factory&gt;
  &lt;/hibernate-configuration&gt;
  </code></pre>