title: Adding jars to an application in application.xml?
body: <p>I have a java application which needs to be deployed in the weblogic server. I am currently making the ear file for that application. My ear file has an ejb jar inside. I want to add log4j2 jars to this application. So my folder structure is </p>
  
  <pre><code>&gt; Project-Name-
  &gt;     --Ear-Content
  &gt;         --APP-INF
  &gt;             --lib -&gt; log4j2 jars
  &gt;             --classes - &gt; log4j2.xml
  &gt;         --META-INF-&gt;application.xml, MANIFEST.MF, weblogic-application.xml
  &gt;         --Project-Name.jar
  </code></pre>
  
  <p>Currently I have put the jars in APP-INF folder/lib and in META-INF/application.xml I have put the jars in modules. Here is my application.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'&gt;
  &lt;application&gt;
    &lt;display-name&gt;ProjectName&lt;/display-name&gt;
    &lt;description&gt;ProjectName&lt;/description&gt;
  
    &lt;module&gt;
          &lt;ejb&gt;ProjectName.jar&lt;/ejb&gt;
  
    &lt;/module&gt;
    &lt;module&gt;
          &lt;java&gt;lib/log4j-api-2.1.jar&lt;/java&gt;
  
    &lt;/module&gt;
    &lt;module&gt;
    &lt;java&gt;lib/log4j-core-2.1.jar&lt;/java&gt;
    &lt;/module&gt;
  
  
  &lt;/application&gt;
  </code></pre>
  
  <p>But it is not taking the log4j jars. Any solutions ??</p>