<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Talend Log4J competing implementation error in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/LoggerFactory-is-not-a-Logback-LoggerContext-but-Logback-is-on/m-p/2376414#M146095</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just a follow up also experiencing the same problem on ESB 7.2.1 when exporting as a micro service.jar to docker. What is the current state of the bug and is there any work around that can be used?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
    <pubDate>Wed, 09 Oct 2019 11:06:27 GMT</pubDate>
    <dc:creator>Spretorius</dc:creator>
    <dc:date>2019-10-09T11:06:27Z</dc:date>
    <item>
      <title>LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Talend Log4J competing implementation error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/LoggerFactory-is-not-a-Logback-LoggerContext-but-Logback-is-on/m-p/2376411#M146092</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I've run into a problem after building a very simple Route that I use for a demo. Some information&lt;/P&gt; 
&lt;P&gt;on my configurations.&lt;/P&gt; 
&lt;UL&gt; 
 &lt;LI&gt;I'm running Talend Cloud Real-Time Big Data Platform version 7.2.1&lt;/LI&gt; 
 &lt;LI&gt;I'm using Java SE 8 [1.8.0_151] (but i've also tried 1.8.0_171)&lt;/LI&gt; 
 &lt;LI&gt;The bindings shown in Talend are as follows:&lt;P&gt;&lt;I&gt;Starting job PostDataConsumer at 10:47 19/09/2019.&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SLF4J: Class path contains multiple SLF4J bindings.&lt;/P&gt;&lt;P&gt;SLF4J: Found binding in [jar:file:/*/Talend/Talend-Studio-20190620_1446-V7.2.1/configuration/.m2/repository/org/apache/activemq/activemq-all/5.15.9/activemq-all-5.15.9.jar!/org/slf4j/impl/StaticLoggerBinder.class]&lt;/P&gt;&lt;P&gt;SLF4J: Found binding in [jar:file:/*/Talend/Talend-Studio-20190620_1446-V7.2.1/configuration/.m2/repository/org/talend/libraries/slf4j-log4j12-1.7.5/6.0.0/slf4j-log4j12-1.7.5-6.0.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]&lt;/P&gt;&lt;P&gt;SLF4J: See&amp;nbsp;&lt;U&gt;&lt;A title="http://www.slf4j.org/codes.html#multiple_bindings" href="http://www.slf4j.org/codes.html#multiple_bindings" target="_blank" rel="noreferrer noopener nofollow noopener noreferrer"&gt;http://www.slf4j.org/codes.html#multiple_bindings&lt;/A&gt;&lt;/U&gt;&amp;nbsp;for an explanation.&lt;/P&gt;&lt;P&gt;SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]&lt;/P&gt;&lt;P&gt;[statistics] connecting to socket on port 3715&lt;/P&gt;&lt;P&gt;[statistics] connected&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Job PostDataConsumer ended at 10:47 19/09/2019. [exit code=0]&lt;/I&gt;&lt;/P&gt;&lt;/LI&gt; 
&lt;/UL&gt; 
&lt;P&gt;Whenever i try to run the PostDataConsumer.sh file&amp;nbsp;(made by Talend after I build the route) i get the following error:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Exception in thread "main" java.lang.reflect.InvocationTargetException&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Method.java:498)&lt;BR /&gt;at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)&lt;BR /&gt;at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)&lt;BR /&gt;at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)&lt;BR /&gt;at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)&lt;BR /&gt;Caused by: java.lang.IllegalArgumentException: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.slf4j.impl.Log4jLoggerFactory loaded from jar:file:/Users/jessevanderwolf/Documents/Projects/School/IntoData/SimpleMicroserviceUseCase/PostDataConsumer/PostDataConsumer_0.1.jar!/BOOT-INF/lib/slf4j-log4j12-1.7.5-6.0.0.jar!/). If you are using WebLogic you will need to add 'org.slf4j' to prefer-application-packages in WEB-INF/weblogic.xml: org.slf4j.impl.Log4jLoggerFactory&lt;BR /&gt;at org.springframework.util.Assert.instanceCheckFailed(Assert.java:655)&lt;BR /&gt;at org.springframework.util.Assert.isInstanceOf(Assert.java:555)&lt;BR /&gt;at org.springframework.boot.logging.logback.LogbackLoggingSystem.getLoggerContext(LogbackLoggingSystem.java:286)&lt;BR /&gt;at org.springframework.boot.logging.logback.LogbackLoggingSystem.beforeInitialize(LogbackLoggingSystem.java:102)&lt;BR /&gt;at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationStartingEvent(LoggingApplicationListener.java:220)&lt;BR /&gt;at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:199)&lt;BR /&gt;at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)&lt;BR /&gt;at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)&lt;BR /&gt;at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)&lt;BR /&gt;at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)&lt;BR /&gt;at org.springframework.boot.context.event.EventPublishingRunListener.starting(EventPublishingRunListener.java:69)&lt;BR /&gt;at org.springframework.boot.SpringApplicationRunListeners.starting(SpringApplicationRunListeners.java:48)&lt;BR /&gt;at org.springframework.boot.SpringApplication.run(SpringApplication.java:302)&lt;BR /&gt;at microservices.postdataconsumer_0_1.PostDataConsumer.main(PostDataConsumer.java:353)&lt;BR /&gt;... 8 more&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I've already tried the following:&lt;/P&gt; 
&lt;OL&gt; 
 &lt;LI&gt;Disable Log4j in compontents via File &amp;gt; Project Settings &amp;gt; Log4j&lt;/LI&gt; 
 &lt;LI&gt;Make an exclusion like the documentation -&amp;gt;&amp;nbsp;&lt;U&gt;&lt;A title="http://www.slf4j.org/codes.html#multiple_bindings" href="http://www.slf4j.org/codes.html#multiple_bindings" target="_blank" rel="noreferrer noopener nofollow noopener noreferrer"&gt;http://www.slf4j.org/codes.html#multiple_bindings&lt;/A&gt;&lt;/U&gt;&amp;nbsp;suggests&lt;/LI&gt; 
 &lt;LI&gt;use different Java jdk's [1.8.0_151, 1.8.0_171]&lt;/LI&gt; 
&lt;/OL&gt; 
&lt;P&gt;Hope you guys can help me out.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:37:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/LoggerFactory-is-not-a-Logback-LoggerContext-but-Logback-is-on/m-p/2376411#M146092</guid>
      <dc:creator>JessevdW</dc:creator>
      <dc:date>2024-11-16T04:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Talend Log4J competing implementation error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/LoggerFactory-is-not-a-Logback-LoggerContext-but-Logback-is-on/m-p/2376412#M146093</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Could you please post the full error stack trace here? We have a known ESB issue in V 7.2.1.&lt;/P&gt;
&lt;P&gt;Are you running your route as MicroService jar? &lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 09:38:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/LoggerFactory-is-not-a-Logback-LoggerContext-but-Logback-is-on/m-p/2376412#M146093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-30T09:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Talend Log4J competing implementation error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/LoggerFactory-is-not-a-Logback-LoggerContext-but-Logback-is-on/m-p/2376413#M146094</link>
      <description>&lt;P&gt;Hey xdshi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've added the stack trace to the main question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using a Talend route which contains a cMQConnectionfactory component and a cJMS componentent. It also calls a subjob. This is because the standard cHttp component in the route did not work (different issue) so I used a subjob to do a Http request using the tHttpRequest component.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've also added the Talend project in a zipfile.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jesse&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LwvZ"&gt;SampleProject.zip&lt;/A&gt;</description>
      <pubDate>Wed, 02 Oct 2019 09:31:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/LoggerFactory-is-not-a-Logback-LoggerContext-but-Logback-is-on/m-p/2376413#M146094</guid>
      <dc:creator>JessevdW</dc:creator>
      <dc:date>2019-10-02T09:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Talend Log4J competing implementation error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/LoggerFactory-is-not-a-Logback-LoggerContext-but-Logback-is-on/m-p/2376414#M146095</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just a follow up also experiencing the same problem on ESB 7.2.1 when exporting as a micro service.jar to docker. What is the current state of the bug and is there any work around that can be used?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 11:06:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/LoggerFactory-is-not-a-Logback-LoggerContext-but-Logback-is-on/m-p/2376414#M146095</guid>
      <dc:creator>Spretorius</dc:creator>
      <dc:date>2019-10-09T11:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Talend Log4J competing implementation error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/LoggerFactory-is-not-a-Logback-LoggerContext-but-Logback-is-on/m-p/2376415#M146096</link>
      <description>&lt;P class="p1"&gt;Seems like downloading the latest patch fixed the issue. The build where i encountered the issue&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;was as follows:&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Version: 7.2.1&lt;/P&gt;&lt;P class="p1"&gt;Build id: 20190725_0259&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;The latest patch i downloaded via the talend portal, configured and tested the route on&lt;/P&gt;&lt;P class="p1"&gt;was as follows:&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Version: 7.2.1&lt;/P&gt;&lt;P class="p1"&gt;Build id: 20190909_1200_patch&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;You can look up this in information in the studio via Talend Studio &amp;gt; About talend studio.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 14:03:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/LoggerFactory-is-not-a-Logback-LoggerContext-but-Logback-is-on/m-p/2376415#M146096</guid>
      <dc:creator>JessevdW</dc:creator>
      <dc:date>2019-10-17T14:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Talend Log4J competing implementation error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/LoggerFactory-is-not-a-Logback-LoggerContext-but-Logback-is-on/m-p/2376416#M146097</link>
      <description>&lt;P&gt;Spring boot automatically configures the LogBack because of the web starter. According to this &lt;A href="https://tedblob.com/loggerfactory-is-not-a-logback-loggercontext-but-logback-is-on-the-classpath/ " alt="https://tedblob.com/loggerfactory-is-not-a-logback-loggercontext-but-logback-is-on-the-classpath/ " target="_blank"&gt;documentation&lt;/A&gt;, we should remove the default logback module from the project&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 06:34:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/LoggerFactory-is-not-a-Logback-LoggerContext-but-Logback-is-on/m-p/2376416#M146097</guid>
      <dc:creator>Auser1635229904</dc:creator>
      <dc:date>2021-10-26T06:34:35Z</dc:date>
    </item>
  </channel>
</rss>

