title: File not found in EAR packaging
body: <p>Inside my .ear</p>
  
  <pre><code>-META-INF
  -lib
  -ejb-shared.jar
  -ejb.jar
      -com/ejb/... (classes)
      -fileXml.xml (file I'm trying to access)
  -web.war
  </code></pre>
  
  <p>Some description:</p>
  
  <ul>
  <li>"ejbshared" contains some ejbs and JPA entities</li>
  <li>"ejb" contains some ejbs and JPA entities and uses "ejb-shared" project</li>
  </ul>
  
  <p>The problem is that I can't access fileXml.xml. Inside an EJB bean (of ejb.jar) I've done:  </p>
  
  <pre><code>File f = new File("fileXml.xml");
  System.out.println(f.exists()); // returns false!
  </code></pre>
  
  <p>I don't know why, but it seems that fileXml.xml is not in the classpath, althougth it's present in the .ear, or maybe I'm doing things in the wrong way!</p>