Failed to load class "org.slf4j.impl.StaticLoggerBinder".
See original GitHub issuecreated a minimum stand alone:
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
WireMockServer wireMockServer = new WireMockServer(wireMockConfig().port(8123));
wireMockServer.start();
}
}
and get a warning:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
I needed to add an extra Maven dependency to remove the warnings:
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.6.4</version>
</dependency>
Issue Analytics
- State:
- Created 8 years ago
- Comments:5
Top Results From Across the Web
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"
This warning message is reported when the org.slf4j.impl.StaticLoggerBinder class could not be loaded into memory. This happens when no appropriate SLF4J ...
Read more >log4j2 - Failed to load class "org.slf4j.impl.StaticLoggerBinder"
The Java project is using log4j2, but look like some components are used SLF4J logging and caused the following error message: SLF4J: Failed...
Read more >SLF4J Error Codes
This warning message is reported when the org.slf4j.impl.StaticLoggerBinder class could not be loaded into memory. This happens when no appropriate SLF4J ...
Read more >SLF4J Failed to load class org slf4j impl StaticLoggerBinder
My application is to be deployed on both tcServer and WebSphere 6.1. This application uses ehCache and so requires slf4j as a dependency....
Read more >Failed to load class "org.slf4j.impl.StaticLoggerBinder"
2. The slf4j: Failed to load class “org.slf4j.impl.StaticLoggerBinder” Error ... While working with SLF4J, you need to provide the following three ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
How about the case of running WireMock in the terminal with
java -jar wiremock-standalone.jar
? Shouldn’t console logging be enabled?I had to replace the semicolon with a colon, otherwise java could not find the main class