title: Hibernate Configuration Error (Cannot find declaration of element 'hibernate-configuration')
body: <p>I'm trying to establish a simple connection to my database using hibernate. Here is my configuration file:</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://hibernate.sourceforge.net/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.hsqldb.jdbcDriver&lt;/property&gt;
  &lt;property name="connection.url"&gt;jdbc:hsqldb:hsql://localhost&lt;/property&gt;
  &lt;property name="connection.username"&gt;user&lt;/property&gt;
  &lt;property name="connection.password"&gt;pass&lt;/property&gt;
  
  &lt;!-- JDBC connection pool (use the built-in) --&gt;
  &lt;property name="connection.pool_size"&gt;1&lt;/property&gt;
  
  &lt;!-- SQL dialect --&gt;
  &lt;property name="dialect"&gt;org.hibernate.dialect.HSQLDialect&lt;/property&gt;
  
  &lt;!-- Enable Hibernate's automatic session context management --&gt;
  &lt;property name="current_session_context_class"&gt;thread&lt;/property&gt;
  
  &lt;!-- Disable the second-level cache  --&gt;
  &lt;property name="cache.provider_class"&gt;org.hibernate.cache.internal.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;mapping resource="com/mycomp/pro/model/elem/elem.hbm.xml"/&gt;
  &lt;/session-factory&gt;
  &lt;/hibernate-configuration&gt;
  </code></pre>
  
  <p>I get the following error: </p>
  
  <pre><code>Exception in thread "main" org.hibernate.internal.util.config.ConfigurationException: Unable to perform unmarshalling at line number 6 and column 26 in RESOURCE hibernate.cfg.xml. Message: cvc-elt.1: Cannot find the declaration of element 'hibernate-configuration'.
  ...
  </code></pre>
  
  <p>Seems bit illogical. Since I have 'hibernate-configuration' as the root element in the hibernate.cfg.xml file.</p>
  
  <p>I'm using Hibernate 4.1.1 (just mentioning, since I've gotten some hints that the new hibernate could possibly have some issues)</p>
  
  <p>Hopefully somebody can help since I'm new to Hibernate and right now I'm not getting any major help from google either.</p>