Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-3324

POJO objects are not removed from logging.properties when manually removing them from JBoss Config XML

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.1.0.CR2, 8.1.0.Final
    • 8.1.0.CR1
    • Logging
    • None
    • Hide

      1. Start JBoss in standalone mode
      2. Log in to web console
      3. Profile > core > logging > handlers > custom > add
      4. name it whatever
      5. class: org.apache.log4j.FileAppender
      6. module: org.apache.log4j
      7. Add a property: file -> /path/to/some/log4j.log
      8. Add the appender to the root logger
      9. Restart JBoss
      10. Verify the log is populated and logging.properties has the appender
      11. Stop JBoss
      12. Edit standalone.xml and comment out the custom appender and the root logger reference
      13. Start JBoss and stop it again after it completed startup
      14. Uncomment the appender in standalone.xml
      15. Start JBoss.
      16. You should see an error about a duplicate entry in logging.properties

      Show
      1. Start JBoss in standalone mode 2. Log in to web console 3. Profile > core > logging > handlers > custom > add 4. name it whatever 5. class: org.apache.log4j.FileAppender 6. module: org.apache.log4j 7. Add a property: file -> /path/to/some/log4j.log 8. Add the appender to the root logger 9. Restart JBoss 10. Verify the log is populated and logging.properties has the appender 11. Stop JBoss 12. Edit standalone.xml and comment out the custom appender and the root logger reference 13. Start JBoss and stop it again after it completed startup 14. Uncomment the appender in standalone.xml 15. Start JBoss. 16. You should see an error about a duplicate entry in logging.properties
      • Use the CLI
      • Replace logging.properties with the original version. Can be found under domain/configuration/default-server-logging.properties.

      If I remove a custom Log4J appender from my standalone.xml and restart JBoss, I can still see the POJO definition for the removed appender in my logging.properties file.

            jperkins-rhn James Perkins
            rh-ee-klape Kyle Lape
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: