My pom.xml
contains only one reference to SLF4J:
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<version>1.5.10</version>
</dependency>
I am getting this 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.
I checked that URL and indeed it provides a solution: "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 question is: which classpath?
- The system's %CLASSPATH%? (I don't have one! I will need to create it specifically for this)
- Eclipse's project
.classpath
? (I think I tried this but it didn't help) - Other?
I found quite a few postings on the subject here on SO, but they all quote the same answer: "place ... on the class path".
Which classpath?
1.
Eclipse 3.7.22.
Maven 2.2.13.
m2e plugin 1.2.0.20120903-1050. Any idea how to resolve this error without defaulting to the no-operation (NOP) logger implementation SLF4J? Thanks. – Withheldpom.xml
didn't yield any reference to 'logback'. It found one reference only to 'slf4j' (which is what's recommended). I will continue my comment in reply to your excellent answer below. Thanks. – Withheld