[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [m2e-users] Error "SLF4J: Failed to load class org.slf4j.impl.StaticLoggerBinder"
- From: Igor Fedorenko <igor@xxxxxxxxxxxxxx>
- Date: Sun, 01 Jul 2012 07:32:26 -0400
- Delivered-to: firstname.lastname@example.org
- User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
All dependencies are added through pom.xml.
Also, maven users list is a better place to ask general maven usage
questions. This list is dedicated to questions and discussions about m2e.
On 12-07-01 3:25 AM, Sebastian Hauck wrote:
I have a Maven problem or think it is a Maven problem.
I created a Maven Project.
When I try to run it, it says "SLF4J: Failed to load class
org.slf4j.impl.StaticLoggerBinder". I searched the internet and found
this error description:
/Failedto load class org.slf4j.impl.StaticLoggerBinder:/
/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.
SINCE 1.6.0 As of SLF4J version 1.6, in the absence of a binding, SLF4J
will default to a no-operation (NOP) logger implementation.
You can download SLF4J bindings from the project download page./
I loaded on of the mentioned files, in my case "slf4j-simple-1.6.2" but
now I do not know where to put it and how to bin it on the classpath. In
my Maven project there is a file called ".classpath".
The content of this file is:
<?xml version="1.0" encoding="UTF-8"?>
<classpathentry kind="src" output="target/test-classes"
<classpathentry excluding="**" kind="src" output="target/test-classes"
<classpathentry kind="output" path="target/classes"/>
Does anyone know how I can bind the above mentioned file to the classpath?
Is it actually this file ".classpath" where I have to bind the file
slf4j-simple-1.6.2 or do I have to bind it somewhere else?
m2e-users mailing list