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

log4j2 with servlet 3.0 container in WAS8.5 not working

    XMLWordPrintableJSON

Details

    • Question
    • Status: Closed
    • Blocker
    • Resolution: Not A Problem
    • None
    • None
    • Log4j 1.2 bridge
    • None
    • Windows 7, WAS8.5, Java1.6

    Description

      Trying to setup new J2EE project on WAS8.5 using latest Log4J2 jar files. When I run a test servlet, logfiles are not geting created and writing the log.
      http://stackoverflow.com/questions/26164572/log4j2-with-servlet-3-0-container-in-was8-5-not-working

      1. Log4J2.xml is placed under WEB-INF/classes
      2.Log4j-api-2.0.2.jar, log4j-core-2.0.2,log4j-web-2.0.2 inluded in the classpath

      if I run DemoLog4J class with main method, I am able to see console and logfiles are written without system property for log4J2.xml location.
      Please help. Thanks!

      Attachments

        1. log4j1.png
          4.98 MB
          Sudhakar
        2. log4j2.png
          134 kB
          Sudhakar
        3. log4j3.png
          4.86 MB
          Sudhakar
        4. log4j4.png
          3.74 MB
          Sudhakar

        Activity

          People

            Unassigned Unassigned
            sudhakartv Sudhakar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: