title: Weblogic Prefer application packages not working
body: <p>I am using Weblogic 10.3.6 portal server. Weblogic 10.3.6 always uses common-fileupload jar that comes with weblogic. But I want the server to use the one I have inside my war. </p>
  
  <p>Use case is I have war1 it uses apache jars which are inside war2. I added below lines in weblogic.xml of both wars but it is not working and still loading weblogic specific jars.</p>
  
  <pre><code>&lt;wls:container-descriptor&gt;
      &lt;wls:prefer-application-packages&gt;
        &lt;wls:package-name&gt;com.sample.*&lt;/wls:package-name&gt;
      &lt;/wls:prefer-application-packages&gt;  
    &lt;/wls:container-descriptor&gt; 
  </code></pre>
  
  <p>Any idea why the jar inside the wars are not been used ?</p>