title: Hibernate : classpath resource cannot be opened because it does not exist
body: <p>I have a Maven project using Spring and Hibernate. When I launch it in Eclipse using Debug As > Java Application, it works great. But once I exported it as a runnable .jar file, it gives me this error : </p>
  
  <pre><code>class path resource [com/xxx/file.hbm.xml] cannot be opened because it does not exist
  </code></pre>
  
  <p>But when I open the .jar file, the file is located under /resources/com/xxx.file.hbm.xml. What did I do wrong ?</p>
  
  <p>Thank you.</p>