2 Replies Latest reply on Mar 11, 2016 10:49 AM by Kuru Suntharalingam

    log4j.properies file from war is not loading

    Kuru Suntharalingam Newbie

      I am in the process of migrating Jboss 5 to Wildfly 9. I have a problem with log4j.properies not loading in wildfly, which works fine with Jbosss 5.

       

      log4j properties file is located in \WEB-INF\classes\  folder in the war file

       

      My jboss-deployment-structure.xml

       

      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">

        <deployment>

           <dependencies>

             <module name="org.javassist"/>

            <module name="org.slf4j"/>

             <module name="org.apache.log4j" />

             <module name="org.apache.commons.logging"/>

           </dependencies>

         </deployment>

      </jboss-deployment-structure>

       

      I see the following error in the server logs

       

      2016-03-08 12:23:18,623 ERROR [stderr] (ServerService Thread Pool -- 73) log4j:WARN No appenders could be found for logger (com.econs.beam.listener.Log4jConfigListener).

      2016-03-08 12:23:18,625 ERROR [stderr] (ServerService Thread Pool -- 73) log4j:WARN Please initialize the log4j system properly.

      2016-03-08 12:23:18,626 ERROR [stderr] (ServerService Thread Pool -- 73) log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

       

      Any one knows what I missed?