The log4j.xml file from EAR is not loaded when EAR has a dependencies on a RAR

Solution Verified - Updated -

Issue

  • log4j.xml from RAR is loaded but not the one from EAR
  • log4j.xml from EAR is not loaded

Environment

  • EAP (Enterprise Application Platform)

    • 6.4.9
  • EAR containing a META-INF/log4j.xml, the RAR file also contains a file META-INF/log4j.xml. The EAR has a dependency on the RAR (jboss-deployment-structure.xml):

    <deployment>
      <dependencies>
         <module name="deployment.mytest-rar.rar" export="true"/>
    
  • META_INF/log4j.xml defined in EAR;
  • META_INF/log4j.xlm defined in RAR;

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content