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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.