Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Igor_V
Contributor
Contributor

Error: "multiple SLF4J bindings" component from Talend Component Kit IntelliJ plugin

I try to use example from "Talend Component Kit tutorial" (https://talend.github.io/component-runtime/main/1.0.5/tutorial-create-my-first-component.html)

After compiling and deploying the component to Talend Open Studio, I recieve error:

SLF4J: Class path contains multiple SLF4J bindings.

SLF4J: Found binding in [jar:file:/C:/Data/TOS_ESB-Studio-V7.4.1/configuration/.m2/repository/org/apache/logging/log4j/log4j-slf4j-impl/2.12.1/log4j-slf4j-impl-2.12.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: Found binding in [jar:file:/C:/Data/TOS_ESB-Studio-V7.4.1/configuration/.m2/repository/org/talend/sdk/component/slf4j-standard/1.29.0-SNAPSHOT/slf4j-standard-1.29.0-SNAPSHOT.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: See http://www.slf4j.org/codes.html# multiple_bindings for an explanation.

SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]

I insert in pom.xml extensions from http://www.slf4j.org/codes.html# multiple_bindings :

 <dependencies>

  <dependency>

   <groupId>org.talend.sdk.component</groupId>

   <artifactId>component-api</artifactId>

   <version>1.34.1</version>

   <scope>provided</scope>

   <exclusions>

    <exclusion>

     <groupId>org.slf4j</groupId>

     <artifactId>slf4j-log4j12</artifactId>

    </exclusion>

    <exclusion>

     <groupId>log4j</groupId>

     <artifactId>log4j</artifactId>

    </exclusion>

   </exclusions>

  </dependency>

 </dependencies>

But error remained the same. 

Who can HELP!!!!! 

Labels (3)
2 Replies
undx
Creator
Creator

Hi @Grapeus Grapeus​ ,

run `mvn dependency:tree` to see from where is coming the dependency and exclude it. btw, in itself component-api has no slf4j dep.

best regards

Igor_V
Contributor
Contributor
Author

Yes, in Idea the result of mvn dependency:tree:

com.tutorial:TMPLTDDD:jar:0.0.1-SNAPSHOT

[INFO] \- org.talend.sdk.component:component-api:jar:1.34.1:provided

[INFO]  +- org.apache.geronimo.specs:geronimo-annotation_1.3_spec:jar:1.2:provided

[INFO]  +- org.apache.geronimo.specs:geronimo-json_1.1_spec:jar:1.3:provided

[INFO]  \- org.apache.geronimo.specs:geronimo-jsonb_1.0_spec:jar:1.2:provided

No mention of slf4j.

But when I insert the example exported from Idea into the Talend job, I get the error described above after run.