title: HibernateException: Could not parse configuration
body: <p>I have a problem with my hibernate</p>
  
  <p>the trace:</p>
  
  <pre><code>org.hibernate.HibernateException: Could not parse configuration: /hibernate.cfg.xml
      at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1586)
      at org.hibernate.cfg.AnnotationConfiguration.doConfigure(AnnotationConfiguration.java:1212)
      at org.hibernate.cfg.AnnotationConfiguration.doConfigure(AnnotationConfiguration.java:107)
      at org.hibernate.cfg.Configuration.configure(Configuration.java:1520)
      at org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfiguration.java:1194)
      at org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfiguration.java:107)
      at org.hibernate.cfg.Configuration.configure(Configuration.java:1506)
      at org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfiguration.java:1188)
      at hibernate.filling.HibernateFill.fillDetail(HibernateFill.java:22)
      at scanningDirective.ScanningTimer$1.run(ScanningTimer.java:57)
      at java.util.TimerThread.mainLoop(Timer.java:555)
      at java.util.TimerThread.run(Timer.java:505)
  Caused by: org.dom4j.DocumentException: www.hibernate.org Nested exception: www.hibernate.org
      at org.dom4j.io.SAXReader.read(SAXReader.java:484)
      at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1576)
      ... 11 more
  </code></pre>
  
  <p>Actually I don't understand why it doesn't work because time ago it worked well and after I've left the project for some time, and in this moment I could install some plugins to the eclips or anything else, Of course I understand that the code couldn't magically change. Well, how do you think what is the reason of such behaveour?</p>
  
  <p>Sorry... how did I managed to forget...
  Here is 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.5//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;org.postgresql.Driver&lt;/property&gt;
          &lt;property name="connection.url"&gt;jdbc:postgresql://localhost:5432/mydb&lt;/property&gt;
          &lt;property name="connection.username"&gt;postgres&lt;/property&gt;
          &lt;property name="connection.password"&gt;1&lt;/property&gt;
  
          &lt;!-- JDBC connection pool (use the built-in) --&gt;
          &lt;property name="connection.pool_size"&gt;2&lt;/property&gt;
  
          &lt;!-- SQL dialect --&gt;
          &lt;property name="dialect"&gt;org.hibernate.dialect.PostgreSQLDialect&lt;/property&gt;
  
          &lt;!-- Disable the second-level cache  --&gt;
          &lt;property name="cache.provider_class"&gt;org.hibernate.cache.NoCacheProvider&lt;/property&gt;
  
          &lt;!-- Echo all executed SQL to stdout --&gt;
          &lt;property name="show_sql"&gt;true&lt;/property&gt;
  
          &lt;!-- Drop and re-create the database schema on startup --&gt;
          &lt;property name="hbm2ddl.auto"&gt;update&lt;/property&gt;
  
          &lt;!-- Names the annotated entity class --&gt;
          &lt;mapping class="documentElements.Header"/&gt;
          &lt;mapping class="documentElements.Detail"/&gt;
  
  
      &lt;/session-factory&gt;
  
  &lt;/hibernate-configuration&gt;
  </code></pre>
  
  <p>After I've changed </p>
  
  <pre><code>&lt;!DOCTYPE hibernate-configuration PUBLIC
          "-//Hibernate/Hibernate Configuration DTD 3.5//EN"
          "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"&gt;
  </code></pre>
  
  <p>to:</p>
  
  <pre><code>&lt;!DOCTYPE hibernate-configuration PUBLIC
          "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
          "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"&gt;
  </code></pre>
  
  <p>Everything began working. I don't understand why it didn't work at the first time. Mabe I needed to restart project...</p>