Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1095516

Summary: [GSS] (6.3.0) POJO objects are not removed from logging.properties when manually removing them from JBoss Config XML
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Kyle Lape <klape>
Component: LoggingAssignee: James Perkins <jperkins>
Status: CLOSED CURRENTRELEASE QA Contact: Nikoleta Hlavickova <nziakova>
Severity: unspecified Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.2.3CC: kkhan, nziakova, pkremens, smumford
Target Milestone: ER5   
Target Release: EAP 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
In previous versions of JBoss EAP 6, when the definition of a POJO was removed from the server's configuration file, references to the POJO were not removed from the `logging.properties` file. If a POJO of the same name was later created again, JBoss EAP would state that there was a duplicate entry in `logging.properties`. This issue has now been resolved and references to POJO objects which no longer remain are removed from the `logging.properties` file.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 14:36:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kyle Lape 2014-05-07 22:39:36 UTC
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.

Reproduce:

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}}

Comment 2 James Perkins 2014-05-13 18:38:08 UTC
Could I get a QA review and a qa_ack+ or qa_ack-?

Comment 3 Petr Kremensky 2014-05-14 09:06:15 UTC
James, you can go on with this.

Comment 4 Nikoleta Hlavickova 2014-07-02 07:06:38 UTC
Verified with EAP 6.3.0.ER8