<div dir="ltr"><div>Hi Nigel,</div><div><br></div><div>You probably want logback 1.3 (1.4 is for Jakarta EE as opposed to 1.3 being for Java EE).</div><div><br>Secondly, logback now uses ServiceLoader to find "providers" so make sure any adjustments are made to your classloading such that that can work.<br></div><div><br></div><div>Cheers<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 1, 2022 at 7:59 AM Nigel L Jones <<a href="mailto:jonesn@uk.ibm.com">jonesn@uk.ibm.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-6820509594644880140">
<div style="overflow-wrap: break-word;" lang="EN-GB">
<div class="m_1973410533458475840WordSection1">
<p class="MsoNormal">Hi,<br>
I’m a maintainer on the open source Egeria project <a href="https://github.com/odpi/egeria" target="_blank">
https://github.com/odpi/egeria</a>. <u></u><u></u></p>
<p class="MsoNormal"><br>
We typically use slf4j in our Java 11 code, and depend on slf4j-api. Then in any ‘applications’ (a client tool, or a server) we include an implementation for logging, such as logback – specifically logback-classic<br>
<br>
<u></u><u></u></p>
<p class="MsoNormal">We regularly update our dependencies and today I tried upgrading from logback 1.2.11 to 1.4.0. On doing so I see we now fail to startup, as slf4j is unable to find a logging implementation. Slf4j is at 2.0.0. We get an exception<br>
<br>
Caused by: java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder<u></u><u></u></p>
<p class="MsoNormal"><br>
Whilst this is an slf4j config issue in most regards, I wonder if the new logback version is not keeping slf4j happy with its implementation in some way<br>
<br>
I opened up an issue in our own bug tracker at <a href="https://github.com/odpi/egeria/issues/6884" target="_blank">
https://github.com/odpi/egeria/issues/6884</a> which has the dependency tree & stack trace in full.<br>
<br>
Is there a change in the new version that’s caught us out? Any indications from the log? (If it is a logback issue happy to open up a bug report, but now knowing logback well figured I’d ask here first!)<br>
<br>
Many thanks<br>
Nigel Jones<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
Unless otherwise stated above:<br>
<br>
IBM United Kingdom Limited<br>
Registered in England and Wales with number 741598<br>
Registered office: PO Box 41, North Harbour, Portsmouth, Hants. PO6 3AU<br>
</div></div>
_______________________________________________<br>
logback-user mailing list<br>
<a href="mailto:logback-user@qos.ch" target="_blank">logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" rel="noreferrer" target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a></div></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span style="font-family:Helvetica"><font color="#999900"><b>Raymond Augé</b></font> (@rotty3000)</span><div><span style="font-family:Helvetica">Senior Software Architect </span><font color="#999900"><b>Liferay, Inc.</b></font><span style="font-size:12.8px;font-family:Helvetica"> (@Liferay)</span></div><div><span style="font-size:12.8px;font-family:Helvetica">OSGi Fellow, </span><span style="font-size:12.8px;font-family:Helvetica">Java Champion</span></div></div></div></div></div></div></div>