Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-546

Commons logging integration does not work in WildFly 8.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.0-rc1
    • None
    • JCL Bridge
    • None
    • WildFly 8.0 RC1, 8.0.0.Final
      Windows 8 64 bit, Mac OS X 10.8.5
      Java 7, Java 8 b129

    Description

      I created trivial servlet 3.0 based web application that uses apache commons logging. But it does not log, file is created, but it is empty. I added LOG4J2 logger as well and it works.

      I have following jars in WEB-INF/lib:

      commons-logging-1.1.3.jar json-smart-1.1.1.jar log4j-api-2.0-rc1.jar log4j-core-2.0-rc1.jar log4j-jcl-2.0-rc1.jar

      I can see following info in WF logs:

      22:48:01,336 INFO [io.undertow.servlet] (MSC service thread 1-11) Log4jServletContainerInitializer starting up Log4j in Servlet 3.0+ environment.
      22:48:01,688 INFO [io.undertow.servlet] (MSC service thread 1-11) No Log4j context configuration provided. This is very unusual.
      22:48:01,702 INFO [io.undertow.servlet] (MSC service thread 1-11) Log4jServletContextListener ensuring that Log4j starts up properly.

      Complete application with sources is attached. You need to adjust log location for your environment.

      Attachments

        1. CommonsLog.war
          991 kB
          Leos Literak

        Issue Links

          Activity

            People

              rgoers Ralph Goers
              literakl Leos Literak
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: