Spring Boot 3.0.7 is having dependency on missing classes from ch.qos.logback
In Spring Boot 2.7, there is no dependency of SanityChecker/ModelHandlerBase/AbstractEventEvaluatorAction classes from ch.qos.logback library. But in Spring Boot 3, the dependency is there but either one of the classes is missing from ch.qos.logback versions(1.2.12, 1.4.11)
Due to this, Java.lang.ClassNotFoundException is thrown while building the project
JDK used: 17.0.8
Comment From: bclozel
Spring Boot 3.0.7 depends on logback 1.4.7 which contains [SanityChecker](https://github.com/qos-ch/logback/blob/v_1.4.7/logback-core/src/main/java/ch/qos/logback/core/joran/sanity/SanityChecker.java), [ModelHandlerBase](https://github.com/qos-ch/logback/blob/v_1.4.7/logback-core/src/main/java/ch/qos/logback/core/model/processor/ModelHandlerBase.java). As for AbstractEventEvaluatorAction, I can't find any reference to it in our codebase. Care to share a minimal sample application that reproduces the problem and can you share a complete stacktrace?
Comment From: spring-projects-issues
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Comment From: spring-projects-issues
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.
Comment From: prabal-saxena-db
Hi @bclozel, I see this issue was closed without any solution because of lack of data. we are also facing this issue and we are stuck in our development. Currently, we are upgrading and fixing vulnerabilities in our application.
We are using below plugin:
Error : org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'logbackConfigurer' defined in class path resource [com/db/esles/configuration/LogbackConfig.class]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: ch/qos/logback/core/joran/action/AbstractEventEvaluatorAction
As maven is not able to find this class, we are not sure how can we overcome this issue.
Comment From: bclozel
This is most likely a dependency management issue in your project. Reducing your application to a sample project or listing all dependencies with your build tool should point to the offending dependency.