Details
-
Enhancement
-
Resolution: Done
-
Major
-
None
-
None
Description
Notes from kconner@redhat.com:
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.