SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
2013-04-27 22:09
381 查看
Phenomenon: Failed to load class "org.slf4j.impl.StaticLoggerBinder"
In official FAQ: This error is reported when the org.slf4j.impl.StaticLoggerBinder class could not be loaded into memory. This happens when no appropriate SLF4J binding could be found on the class path. Placing 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.
My situation: I have log4j jar file on my classpath. Then, what reason cause this?
Analysis: The problem is in the POM.xml:
In official FAQ: This error is reported when the org.slf4j.impl.StaticLoggerBinder class could not be loaded into memory. This happens when no appropriate SLF4J binding could be found on the class path. Placing 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.
My situation: I have log4j jar file on my classpath. Then, what reason cause this?
Analysis: The problem is in the POM.xml:
<dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> <version>1.7.5</version> <scope>test</scope> </dependency>Solution: remove the line <scope>test</scope>. Everything goes well.
相关文章推荐
- (BUG) SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"问题解决 .
- SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"
- SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"问题解决 .
- SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"问题解决 .
- SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"问题
- log4j启动时警告:SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
- SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
- SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"问题解决 .
- kafka中遇到SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"
- eclipse运行出现SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
- SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"问题解决
- SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"问题解决
- 【Error】SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
- SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
- SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
- slf4j: failed to load class &quot;org.slf4j.impl.staticloggerbind
- 解决s2sh项目开发中的SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
- SLF4J: Failed to load class "org.slf4j.impl.
- SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
- SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"问题解决