title: Hibernate configuration file and Eclipse project export
body: <p>I have a 3 projects under Eclipse : 1-CLIENT, 2-COMMON, 3-SERVER. The server project contains everything related to database managment (i.e. DAO...). I'm using hibernate and annotation for this project to access database. The common project contains also some objects commonly used by both the Server and the Client. Some of these objects are from the database. My Server project contains as well the HibernateUtils class that load the configuration file "hibernate.cfg.xml". </p>
  
  <p>When I run the project under Eclipse, no problem, everything is going smoothly. Now comes the deployment... I'm exporting the server as a runnable jar file under Eclipse and the common project as a lib file. in the server jar file, I have the file "hibernate.cfg.xml".</p>
  
  <p>When I launch the program, I'm ending up with an exception </p>
  
  <blockquote>
    <p>Caused by: org.hibernate.HibernateException: /hibernate.cfg.xml not found</p>
  </blockquote>
  
  <p>I've tried to force the filename in the configuration process using new <code>AnnotationConfiguration().configure("XXXX/hibernate.cfg.xml")</code>, but nothing is working !
  Even when I copy the debug command line used to launch the program and paste it under a command dos window, it's not working... </p>
  
  <p>What am I missing there ?</p>