[ 
https://issues.apache.org/jira/browse/IGNITE-6828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16255063#comment-16255063
 ] 

Alexey Popov commented on IGNITE-6828:
--------------------------------------

Or it could be second option - add slf to log4j package:

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

> Confusing messages "SLF4J: Failed to load class" at Ignite start
> ----------------------------------------------------------------
>
>                 Key: IGNITE-6828
>                 URL: https://issues.apache.org/jira/browse/IGNITE-6828
>             Project: Ignite
>          Issue Type: Bug
>      Security Level: Public(Viewable by anyone) 
>          Components: general
>    Affects Versions: 2.1
>            Reporter: Alexey Popov
>            Assignee: Alexey Popov
>            Priority: Trivial
>
> How to reproduce:
> 1. build Ignite
> 2. go to examples\
> 3. run: mvn exec:java 
> -Dexec.mainClass="org.apache.ignite.examples.ExampleNodeStartup"
> you will see the following confusing output:
> 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.
> SLF4J dependency comes from org.springframework.data:spring-data-commons:
> [INFO] +- org.apache.ignite:ignite-spring-data:jar:2.3.0-SNAPSHOT:compile
> [INFO] |  +- (org.apache.ignite:ignite-core:jar:2.3.0-SNAPSHOT:compile - 
> omitted for duplicate)
> [INFO] |  +- (org.apache.ignite:ignite-indexing:jar:2.3.0-SNAPSHOT:compile - 
> omitted for duplicate)
> [INFO] |  +- 
> org.springframework.data:spring-data-commons:jar:1.13.1.RELEASE:compile
> [INFO] |  |  +- (org.springframework:spring-core:jar:4.3.7.RELEASE:compile - 
> omitted for duplicate)
> [INFO] |  |  +- (org.springframework:spring-beans:jar:4.3.7.RELEASE:compile - 
> omitted for duplicate)
> [INFO] |  |  +- org.slf4j:slf4j-api:jar:1.7.24:compile
> [INFO] |  |  \- org.slf4j:jcl-over-slf4j:jar:1.7.24:runtime
> [INFO] |  |     \- (org.slf4j:slf4j-api:jar:1.7.24:runtime - omitted for 
> duplicate)
> [INFO] |  \- (org.apache.ignite:ignite-spring:jar:2.3.0-SNAPSHOT:compile - 
> omitted for duplicate)
> We should remove this dependency because it is confusing and does not affects 
> to Ignite logging functionality



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to