[jboss-jira] [JBoss JIRA] (AS7-5422) Logging configuration DUP should be more deterministic

James Perkins (JIRA) jira-events at lists.jboss.org
Fri Sep 14 13:37:32 EDT 2012


     [ https://issues.jboss.org/browse/AS7-5422?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Perkins updated AS7-5422:
-------------------------------

    Issue Type: Enhancement  (was: Feature Request)

    
> Logging configuration DUP should be more deterministic
> ------------------------------------------------------
>
>                 Key: AS7-5422
>                 URL: https://issues.jboss.org/browse/AS7-5422
>             Project: Application Server 7
>          Issue Type: Enhancement
>          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
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list