<HTML >
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3429" name=GENERATOR></HEAD>
<BODY >
<DIV>
<DIV><FONT face=Arial size=2><SPAN class=514160313-17112008>Hi
all,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=514160313-17112008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=514160313-17112008>i have hit this
issue a couple of times now, so i go ahead and rise it. </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=514160313-17112008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=514160313-17112008>We are creating
libraries to our developers, which are usually have an example part, where they
can try our piece of software out. These examples are part of our Eclipse
project. All these examples have a logback.xml file to show how a
complete application should look like. During development, this causes some
issues because the first one in the classpath will be loaded, so i ended up to
use the manual config loading via Joran, but it took me some time to figure
out the root cause of the issue. I imagine, this will cause issues when
developers will start to bundle there logback.xml file into there jars.
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=514160313-17112008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=514160313-17112008>Could the
ContextInitializer be changed to detect such a scenario and report it? The
change is fairly easy, instead of using the getResource(String name) function
from the ClassLoader class, you could go with the getResources(String name)
function, check if it returned more than one element, than report to the Status
manager the fact, that there are more than 1 logback.xml file on the classpath
and the first one will be used. </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=514160313-17112008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=514160313-17112008>Thanks in
advance,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=514160313-17112008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=514160313-17112008></SPAN></FONT><FONT
face=Arial size=2><SPAN class=514160313-17112008>Kind
Regards,</SPAN></FONT></DIV>
<DIV style="COLOR: black; FONT-FAMILY: arial"><SPAN
style="FONT-SIZE: 10pt">Zoltan Szel<BR></SPAN></DIV>
<DIV> </DIV></DIV>
<DIV>
<HR>
</DIV>
<P CLASS="BulletedList" STYLE="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0in; mso-list: none; tab-stops: .5in"><SPAN STYLE="FONT-SIZE: 8pt; COLOR: gray; mso-bidi-font-family: Arial"><FONT FACE="Arial" COLOR="gray" SIZE="1">NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.</FONT></SPAN></P>
<DIV>
</DIV></BODY></HTML>