[Solved]: 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.

Problem Statement:

The application works fine in Server except for the following error:

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.

Solution:

This warning message 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 classpath. Placing one (and only one) of

  1. slf4j-nop.jar
  2. slf4j-simple.jar,
  3. slf4j-log4j12.jar,
  4. slf4j-jdk14.jar or
  5. logback-classic.jar

on the class path should solve the problem.

 

If you use maven just add the following

   <dependency>       <groupId>org.slf4j</groupId>       <artifactId>slf4j-api</artifactId>       <version>1.7.5</version>   </dependency>   <dependency>       <groupId>org.slf4j</groupId>       <artifactId>slf4j-log4j12</artifactId>       <version>1.7.5</version>   </dependency>

Or

   <dependency>       <groupId>org.slf4j</groupId>       <artifactId>slf4j-api</artifactId>       <version>1.7.5</version>   </dependency>   <dependency>       <groupId>org.slf4j</groupId>       <artifactId>slf4j-simple</artifactId>       <version>1.6.4</version>   </dependency>