title: org.hibernate.InvalidMappingException: Could not parse mapping document from resource
body: <p>I switched the mapping in my code from xml resource to annotations and got that exception. I don't see the error. I think you can figure it out from my code:</p>
  
  <p>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://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"&gt;
  &lt;hibernate-configuration&gt;
    &lt;session-factory&gt;
      &lt;property name="hibernate.dialect"&gt;org.hibernate.dialect.OracleDialect&lt;/property&gt;
      &lt;property name="hibernate.connection.driver_class"&gt;oracle.jdbc.OracleDriver&lt;/property&gt;
      &lt;property name="hibernate.connection.url"&gt;####&lt;/property&gt;
      &lt;property name="hibernate.connection.username"&gt;##&lt;/property&gt;
      &lt;property name="hibernate.connection.password"&gt;###&lt;/property&gt;
      &lt;property name="hibernate.current_session_context_class"&gt;thread&lt;/property&gt;
      &lt;property name="hibernate.query.factory_class"&gt;org.hibernate.hql.classic.ClassicQueryTranslatorFactory&lt;/property&gt;
      &lt;property name="hibernate.show_sql"&gt;true&lt;/property&gt;
      &lt;mapping class="max.Trade" file="" jar="" package="max" resource=""/&gt;
    &lt;/session-factory&gt;
  &lt;/hibernate-configuration&gt;
  </code></pre>
  
  <p>Trade.java</p>
  
  <pre><code>@Entity
  @Table(name="TRADES", schema="PGT")
  public class Trade  implements java.io.Serializable 
  {
       private long murexId;
       private String type;
       private String portfolio;
  
      public Trade() {
      }
  
      public Trade(long murexId) {
          this.murexId = murexId;
      }
  
      public Trade(long murexId, String type, String portfolio) {
         this.murexId = murexId;
         this.type = type;
         this.portfolio = portfolio;    }
  
      @Id
      @Column(name="MUREX_ID", unique=true, nullable=false, precision=10, scale=0)
      public long getMurexId() {
          return this.murexId;
      }
  
      public void setMurexId(long murexId) {
          this.murexId = murexId;
      }
  
      @Column(name="TYPE", length=32)
      public String getType() {
          return this.type;
      }
  
      public void setType(String type) {
          this.type = type;
      }
  
      @Column(name="PORTFOLIO", length=32)
      public String getPortfolio() {
          return this.portfolio;
      }
  
      public void setPortfolio(String portfolio) {
          this.portfolio = portfolio;
      }
  
  }
  </code></pre>
  
  <p>I will really appreciate any help. </p>
  
  <p>Thanks!</p>