SLF4J Class path contains multiple SLF4J bindings
This is common issue while first time settting up log4j with the application where multiple jar file inlcuded in your project path and you get below exception:
- Exception details:
SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/C:/Users/javahonk/.m2/repository/org/slf4j/slf4j-simple/1.6.1/slf4j-simple-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/C:/Users/javahonk/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
- Solution: As you see in the exception details there is multiple jars in the classpath found one is from slf4j-simple-1.6.1.jar and and another one is from slf4j-log4j12-1.6.1.jar so to fix this issue plesae remove slf4j-log4j12-1.6.1.jar from your classpath.
- To download this jars please visit maven site here