Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downgraded logback due to compatibility issues with springboot #4

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

YogeshSampalDell
Copy link
Contributor

Summary

  • Upgrading logback to 1.4.14 caused below exception during application startup.
    024-02-23T17:51:50.008+05:30 [APP/PROC/WEB/0] [ERR] Caused by: java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder 2024-02-23T17:51:50.008+05:30 [APP/PROC/WEB/0] [ERR] at org.springframework.boot.logging.logback.LogbackLoggingSystem.getLoggerContext(LogbackLoggingSystem.java:304) 2024-02-23T17:51:50.008+05:30 [APP/PROC/WEB/0] [ERR] at org.springframework.boot.logging.logback.LogbackLoggingSystem.beforeInitialize(LogbackLoggingSystem.java:118) 2024-02-23T17:51:50.009+05:30 [APP/PROC/WEB/0] [ERR] at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationStartingEvent(LoggingApplicationListener.java:238)
  • Fixing this involved upgrading slf4j-api to 2.x which has it's own compatibility issues with springboot.
    Spring boot 2.7.x does not work with logback 1.3.x (Java 8) spring-projects/spring-boot#34708 (comment)

build.gradle Show resolved Hide resolved
@YogeshSampalDell YogeshSampalDell merged commit 547e5cd into master Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants