title: Problems with EAR deployment in weblogic
body: <p>I'm having a problem trying to deploy WAR files within an Enterprise Application on Weblogic.</p>
  
  <p>The Web applications work fine as individual .war files when deployed, but when bundled together in an .ear file there seems to be a problem accessing resources in each web application's WEB-INF/classes directory.</p>
  
  <p>I have some resources that need to be accessed from this directory (for example a log4j.xml file). When the .ear file is deployed, Weblogic unpacks it to tmp location on the server. Everything seems correct, except that the WEB-INF/classes directory has none of the expected files in it. They exist inside the .war file in the .ear file.</p>
  
  <p>Files at the WEB-INF and WEB-INF/lib directory and the WEB-INF and the base directory for the .war file all exist, but the WEB-INF/classes directory is mysteriously empty.</p>
  
  <p>The ClassLoader for Weblogic indicates that the path for this directory is on the classpath, but with no files, it obviously can't find them.</p>
  
  <p>Does anyone know what might be causing this behaviour and how to fix it?</p>