title: Resource file not found after war file deployed upon wildfly8
body: <p>I've created dynamic web project in Eclipse and added it to ear project.</p>
  
  <p>Image resources are placed at src\resources\</p>
  
  <p>Code use resources:</p>
  
  <pre><code>@GET
  @Path("bank")
  @Produces("application/json")
  public String getBank(@Context HttpHeaders headers) {
    ClassLoader classLoader = getClass().getClassLoader();
    File file = new File(classLoader.getResource("/resources/alfa.png").getFile());
    String base64 = Utility.getBase64(file);
    return "{\"icon\":\"" + base64 + "\"}";
  }
  </code></pre>
  
  <p>While debugging it's OK.</p>
  
  <p>When ear deployed code throws exception:
       java.io.FileNotFoundException: C:\apps\wildfly-8.2.0.Final\bin\content\TimerService.ear\timer.war\WEB-INF\classes\resources\alfa.png</p>
  
  <p>All resources are present in war-file contained in ear-file.</p>
  
  <p>What is wrong?</p>