JyotiSathe opened a new issue, #2384:
URL: https://github.com/apache/logging-log4j2/issues/2384

   ## Description
   
   I have spring boot project, recently upgraded to version 3.2.2 from 3.1.0. 
We are using dependency "org.apache.logging.log4j:log4j-spring-boot" in our 
project.
   
   After upgrading to 3.2.2 we are getting below exception when started the the 
application.
   
   Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/commons/logging/LogFactory
        at 
org.springframework.boot.SpringApplication.<clinit>(SpringApplication.java:202)
   
   On analyzing found that spring-boot-**3.1.0** imports dependency 
log4j-spring-boot with version **2.20.0**
   and spring-boot-**3.2.2** imports dependency log4j-spring-boot with version 
**2.21.1**
   
   If I use version 2.20.0 explicitly for log4j-spring-boot with spring-boot 
3.2.2, application works as expected with warning in logs "Standard Commons 
Logging discovery in action with spring-jcl: please remove commons-logging.jar 
from classpath in order to avoid potential conflicts".
   
   As per initial observation it seems 2.21.1 version of log4j-spring-boot have 
some issue which throws NoClassDefFoundError.
   
   ## Configuration
   
   **Version:** 2.21.1
   
   **JDK:** JDK-17
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@logging.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to