java - Failed to find slf4j LoggerBinder when building -


at first, new stackoverflow , try best provide information you, might me solve problem.

i found similar questions on site, none of them helped me solve problem.

i'm running gwt project gxt. using eclipse javaee juno maven.

when run application in eclipse fine, when try build war using maven package goal following message

slf4j: failed load class "org.slf4j.impl.staticloggerbinder". slf4j: defaulting no-operation (nop) logger implementation slf4j: see http://www.slf4j.org/codes.html#staticloggerbinder further details. 

but works nevertheless.

i think problem no implementation of binder found. here snippet pom.xml

<properties>     <gwtversion>2.5.0</gwtversion>     <gwt-log.version>3.2.1</gwt-log.version>     <maven.compiler.source>1.6</maven.compiler.source>     <maven.compiler.target>1.6</maven.compiler.target>     <hibernate.version>3.6.9.final</hibernate.version>     <gwt-dnd.version>3.2.2</gwt-dnd.version>     <htmlcleaner.version>2.2</htmlcleaner.version>     <commons-codec.version>1.7</commons-codec.version>     <commons-fileupload.version>1.2.2</commons-fileupload.version>     <gxt.version>3.0.0</gxt.version>     <project.build.sourceencoding>utf-8</project.build.sourceencoding>     <slf4jversion>1.7.5</slf4jversion> </properties> <dependency>     <groupid>log4j</groupid>     <artifactid>log4j</artifactid>     <version>1.2.16</version> </dependency> <dependency>     <groupid>org.slf4j</groupid>     <artifactid>slf4j-log4j12</artifactid>     <version>${slf4jversion}</version> </dependency> <dependency>     <groupid>org.slf4j</groupid>     <artifactid>slf4j-api</artifactid>     <version>${slf4jversion}</version> </dependency> 

these ones recommended in manual (http://www.slf4j.org/manual.html), if want use slf4j , log4j

as happens, when build war, think have sth. scope, don't know.

hope can me, in advance.

please use log4j version(1.2.17) instead of (1.2.16) .

for example:

<dependency>     <groupid>log4j</groupid>     <artifactid>log4j</artifactid>     <version>1.2.17</version> </dependency> 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -