title: org.hibernate.boot.MappingNotFoundException: Mapping (RESOURCE) not found
body: <p>I have been trying my hand to implement hibernate using a small example.</p>
  
  <p>Below is my hibernate.config.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="connection.driver_class"&gt;
  com.mysql.jdbc.Driver
  &lt;/property&gt;
  &lt;property name="connection.url"&gt;
  jdbc:mysql://localhost:3306/abc
  &lt;/property&gt;
  &lt;property name="connection.username"&gt;root&lt;/property&gt;
  &lt;property name="connection.password"&gt;&lt;/property&gt;
  &lt;property name="dialect"&gt;
  org.hibernate.dialect.MySQLDialect
  &lt;/property&gt;
  &lt;property name="show_sql"&gt;true&lt;/property&gt;
  &lt;mapping
  resource="HibernateExample/src/HibernateExposed/Resource/Person.hbm.xml"/&gt;
  &lt;/session-factory&gt;
  &lt;/hibernate-configuration&gt;
  </code></pre>
  
  <p>When running the code I am getting error org.hibernate.boot.MappingNotFoundException: Mapping (RESOURCE) not found.</p>
  
  <p>I tried replacing mapping as below</p>
  
  <pre><code>&lt;mapping
  resource="Resource/Person.hbm.xml"/&gt;
  </code></pre>
  
  <p>and also tried to keep the mapping xml at same location as hibernate.config.xml.</p>
  
  <pre><code>&lt;mapping
  resource="Person.hbm.xml"/&gt;
  </code></pre>
  
  <p>Under none of above mentioned cases, code can find my Person.hbm.xml.</p>
  
  <p>My folder structure looks as below</p>
  
  <p><a href="https://i.stack.imgur.com/KnNcP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KnNcP.png" alt="enter image description here"></a></p>
  
  <p>I looked at all other answers for this error on Stackoverflow but none of the approaches resolved this issue. Any help is highly appreciated. Also, is there any approach to debug this further to granular level?</p>