title: Hibernate mapping throws class not found exception
body: <p>I've been trying to start up Tapestry with Hibernate through SQL Server 2008. I followed the tapestry and hibernate guide at the start, but when I got to the mapping part, I got this class not found exception, that further throws could not parse mapping document from resource exception, and so far I could not find a solution for this.
  This is the mapping file:</p>
  
  
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
   "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"&gt;
   &lt;hibernate-mapping&gt;
   &lt;class name="com.example.tutorial.entities.Address.java" table="address"&gt;
  
          &lt;id name="id"&gt;          
              &lt;column name="id"/&gt;
              &lt;generator class="increment"/&gt;
          &lt;/id&gt;
      &lt;property name="honorific" type="java.lang.String"/&gt;
      &lt;property name="firstName" type="java.lang.String"/&gt;
      &lt;property name="lastName" type="java.lang.String"/&gt;
      &lt;property name="street1" type="java.lang.String"/&gt;
      &lt;property name="street2" type="java.lang.String"/&gt;
      &lt;property name="city" type="java.lang.String"/&gt;
      &lt;property name="state" type="java.lang.String"/&gt;
      &lt;property name="zip" type="java.lang.String"/&gt;
      &lt;property name="email" type="java.lang.String"/&gt;
      &lt;property name="phone" type="java.lang.Integer"/&gt;       
  &lt;/class&gt;
  </code></pre>
  
  <p></p>
  
  <p>and this is the hibernate.cfg.xml:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&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;property name="hibernate.connection.driver_class"&gt;com.microsoft.sqlserver.jdbc.SQLServerDriver&lt;/property&gt;
      &lt;property name="hibernate.connection.url"&gt;jdbc:sqlserver://localhost/testdb;integratedSecurity=true&lt;/property&gt;
      &lt;property name="hibernate.dialect"&gt;org.hibernate.dialect.SQLServerDialect&lt;/property&gt;
      &lt;property name="hibernate.connection.username"&gt;not required&lt;/property&gt;
      &lt;property name="hibernate.connection.password"&gt;&lt;/property&gt;
      &lt;property name="hbm2ddl.auto"&gt;update&lt;/property&gt;
      &lt;property name="hibernate.show_sql"&gt;true&lt;/property&gt;
      &lt;property name="hibernate.format_sql"&gt;true&lt;/property&gt;
      &lt;mapping resource="mappings/hibernate.hbm.xml" /&gt;
  &lt;/session-factory&gt;
  </code></pre>
  
  <p></p>
  
  <p>This is the full error trace:
  <a href="https://docs.google.com/file/d/0B0_KI_Lyv76_b05WTkZxVG1XLTA/edit?usp=sharing" rel="nofollow">https://docs.google.com/file/d/0B0_KI_Lyv76_b05WTkZxVG1XLTA/edit?usp=sharing</a></p>
  
  <p>Any suggestions are welcome.</p>