[jboss-jira] [JBoss JIRA] (AS7-5422) Logging configuration DUP should be more deterministic
James Perkins (JIRA)
jira-events at lists.jboss.org
Thu Aug 23 14:37:15 EDT 2012
James Perkins created AS7-5422:
----------------------------------
Summary: Logging configuration DUP should be more deterministic
Key: AS7-5422
URL: https://issues.jboss.org/browse/AS7-5422
Project: Application Server 7
Issue Type: Feature Request
Components: Logging
Reporter: James Perkins
Assignee: James Perkins
Notes from [~kconner]:
The findConfigFile method does a recursive search of the resource, looking for the configuration files, but there seems to be a couple of problems with this
- the order of the search may be dependent on the platform as VFS seems
to rely on the filesystem order (not classpath) so it may not be
deterministic across platforms.
- any log4j.xml/log4j.properties/jboss-log4j.xml will overwrite the
previously discovered resource, resulting in the last being chosen.
I came across this while debugging some strange behaviour when deploying drools-guvnor.war into EAP 6. What I discovered is that this loop first identified the top most resource (/content/drools-guvnor.war/WEB-INF/classes/log4j.xml) but then overwrote it with an embedded one (/content/drools-guvnor.war/WEB-INF/lib/webdav-servlet-2.0.jar/log4j.xml) but it doesn't appear as if this method has a well defined behaviour.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list