shiro error: SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.
Shiro reports an error
SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.
Reason found after search:
Logging implication loading org.slf4j.impl.StaticLoggerBinder class failed
This warning message is reported when running the “org.slf4j.impl. Unable to load StaticLoggerBinder class into memory. This happens when a suitable SLF4J binding cannot be found on the class path. Putting one (and only one) of slf4j-nop.jar slf4j-simple.jar, slf4j-log4j12.jar, slf4j-jdk14.jar, or logback-classic.jar on the class path should solve the problem.
Note that the slf4j-api version is 2.0. x and later using the ServiceLoader mechanism. Backends, such as logback 1.3 and later, target slf4j-api 2. Do not distribute with org.slf4j.impl.StaticLoggerBinder. If you set up a logging backend targeting slf4j-api 2.0. X, you need to install slf4j-api-2.x.jar on the class path. See the related faq entry.
Solution:
Remove one of the jar packages slf4j-nop.jar slf4j-simple.jar, slf4j-log4j12.jar, slf4j-jdk14.jar or logback-classic.jar, leaving only one
runs successfully
Read More:
- [Solved] Failed to load class org.slf4j.impl.StaticLoggerBinder
- Mac project startup error: logback configuration error detected
- How to Solve Springboot YML configurate logging.level error
- How to Solve classnotfoundexception error in spark without Hadoop runtime
- Frequent log swiping after Nacos client starts [How to Solve]
- [Solved] Invocation of init method failed; nested exception is java.lang.NoSuchMethodError:
- How to Solve shiro Set sessionIdUrlRewritingEnabled Error (jessionid Removed)
- Springboot startup error “No bean named’org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry’ available”
- [Solved] Log4j2 log startup error: javax.xml.parsers.ParserConfigurationException…
- [Solved] XxlJob Error: XxlJobFileAppender [101] -| Permission denied
- [Integrate the mobile MAS SMS service] SDK start error: NoSuchMethodError: org.springframework.core.annotation.AnnotatedElementUtil
- Springboot integration shiro error: UnsatisfiedDependencyException: Error creating bean with name ‘getShiroFilterFact
- Java.lang.exceptionininitializererror [How to Fix]
- [Solved] com.alibaba.druid.filter.FilterManager : load filter error, filter not found : sl4j
- Mybatis plus configuration console prints complete SQL statement with parameters
- Caused by: java.lang.IllegalStateException (How to Fix)
- [Solved] Java.lang.ClassCastException: [Ljava.lang.Long; cannot be cast to java.util.List
- DevTools failed to load SourceMap Could not load content [Solved]
- Error:Abnormal build process termination [How to Solve]
- ERROR StatusLogger No Log4j 2 configuration file found. Using default configuration…