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:
- [2022 New Solution] SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder
- [Solved] Failed to load class org.slf4j.impl.StaticLoggerBinder
- IDEA Error: lombok.extern.slf4j is not exist [How to Solve]
- How to Fix log4j2 warning: warn unable to identify org.fusesource.jansi.WindowsAnsiOutputStream
- [Solved] SpringMVC Shiro Error: org.apache.shiro.UnavailableSecurityManagerException No SecurityManager
- [Solved] shiro Error: org.apache.shiro.authc.UnknownAccountException:
- [Solved] com.alibaba.druid.filter.FilterManager : load filter error, filter not found : sl4j
- How to Solve Log4j 2.5 upgrade to 2.15 error
- [Solved] Log4j2 log startup error: javax.xml.parsers.ParserConfigurationException…
- Springboot2.6X version integrate knife4j error [How to Solve]
- log4j:WARN Error during default initialization [How to Solve]
- ERROR StatusLogger No Log4j 2 configuration file found. Using default configuration…
- [Solved] openstack4j Startup Error: java.net.UnknownHostException: controller
- Split log by date in log4j2 of spring boot
- [Solved] org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class
- [Solved] Failed to introspect Class [org.springframework.cloud.netflix.hystrix.HystrixCircuitBreakerConfigura
- How to Solve shiro Set sessionIdUrlRewritingEnabled Error (jessionid Removed)
- DevTools failed to load SourceMap Could not load content [Solved]
- Jmeter Error: ERROR o.a.j.JMeter: Uncaught exception in thread Thread[AWT-EventQueue-0,6,main]
- Java error: unable to find or load main class (package name in source file)