[logback-user] Upgrading Logback Classic from 1.3.8 to 1.3.9 causes ClassNotFoundException: ch.qos.logback.classic.spi.Configurator

Ceki Gülcü ceki at qos.ch
Fri Aug 11 13:35:09 CEST 2023


Hi Christian,

The deprecated method ContextInitializer.configureByResource was removed
because it was preventing the decoupling of logback initialization from
JoranConfigurator class.

Downstream developers, for example Micronaut developers, can circumvent
this incompatibility problem by copying the code in the
ContextInitializer.configureByResource method into their project. This
should be a relatively easy exercise.

In any case, apologies for the inconvenience.

Best regards,

-- 
Ceki Gülcü

Sponsoring SLF4J/logback/reload4j at https://github.com/sponsors/qos-ch

On 8/11/2023 12:32 PM, "Christian Möller via logback-user
<logback-user at qo"@qos.ch wrote:
> Hi Ceki,
> 
> I've recognized arrival of two new versions 1.3.10 and 1.3.11 of your
> lib logback-classic.
> 
> Unfortunately, both of them trigger following Exception with our
> application's test cases:
> 
>   java.lang.NoSuchMethodError: 'void
> ch.qos.logback.classic.util.ContextInitializer.configureByResource(java.net.URL)'
>     at
> io.micronaut.logging.impl.LogbackUtils.configure(LogbackUtils.java:100)
>     at
> io.micronaut.logging.impl.LogbackUtils.configure(LogbackUtils.java:57)
>     at
> io.micronaut.management.endpoint.loggers.impl.LogbackLoggingSystem.refresh(LogbackLoggingSystem.java:134)
>     [...]
> 
> We are using Micronaut 3.9.4 in this project.
> 
> Regards
> 
> Christian
> 
> 
> Am 09.08.23 um 11:17 schrieb Ceki Gülcü via logback-user:
>> Hi Christian,
>>
>> Thank you for bringing this issue to our attention.
>>
>> The class has been moved to logback-core module under
>> ch.qos.logback.core.spi package by mistake during experimentation and
>> will be reverted in the next version.
>>
>>
>> Best regards,
>>
> 


More information about the logback-user mailing list