<?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 Exception in thread &amp;quot;main&amp;quot; java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2330762#M99812</link>
    <description>&lt;P&gt;Encountered the following error even though all the attached jar files have been added in the Routine Libraries including &lt;B&gt;commons-logging-1.1.3&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000C7KTHAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138511i109C0782798ACF08/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000C7KTHAA3.png" alt="0693p00000C7KTHAA3.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Additional Details&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;1)&lt;/B&gt; &lt;B&gt;Talend version 7.3.1&lt;/B&gt; was downloaded from the following webpage:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000C7UgMAAV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147005iCE44035D9F50F562/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000C7UgMAAV.png" alt="0693p00000C7UgMAAV.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;2)&lt;/B&gt; The application is being executed using &lt;B&gt;jdk-11.0.10&lt;/B&gt; through the following command. (&lt;I&gt;It was previously working on &lt;/I&gt;&lt;B&gt;&lt;I&gt;jdk-15.0.1&lt;/I&gt;&lt;/B&gt;&lt;I&gt;; but after encountering Java error after re-installation, it is now working on the lower JDK version 11.&lt;/I&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;D:\&amp;gt;TalendStudio\Talend-Studio-20200219_1130-V7.3.1\Talend-Studio-win-x86_64.exe -vm TalendStudio\jdk-11.0.10\bin&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;3) &lt;/B&gt;A &lt;B&gt;ParameterStore_Cred&lt;/B&gt; was created in the &lt;B&gt;Repository&lt;/B&gt; under &lt;B&gt;Code &lt;/B&gt;&amp;gt; &lt;B&gt;Routines&lt;/B&gt; (&lt;I&gt;Code used is in attached file, &lt;/I&gt;&lt;B&gt;&lt;I&gt;ParameterStore_Cred.java&lt;/I&gt;&lt;/B&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;4)&lt;/B&gt; The &lt;B&gt;Routine Libraries&lt;/B&gt; of &lt;B&gt;ParameterStore_Cred&lt;/B&gt; was edited to add the JAR files from attached &lt;B&gt;jar_files.zip&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;5) &lt;/B&gt;The sample Talend job has the following components:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000C7UuwAAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133707i04D772496F5851EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000C7UuwAAF.png" alt="0693p00000C7UuwAAF.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;6)&lt;/B&gt; The &lt;B&gt;tJava_1&lt;/B&gt; component contains the following line of code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;String str=ParameterStore_Cred.getParameter(context.parameter_store);&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;System.out.println(str);&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;globalMap.put("key", str);&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;7)&lt;/B&gt; The &lt;B&gt;Target Execution&lt;/B&gt; of the job is a &lt;B&gt;Custom Job Server&lt;/B&gt; in Talend cloud through &lt;B&gt;AWS&lt;/B&gt;.&lt;/P&gt;&lt;P&gt;&lt;I&gt;Example:&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000C7V0zAAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129599iF074EC4D1E542F84/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000C7V0zAAF.png" alt="0693p00000C7V0zAAF.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/B&gt; During execution, it encountered the Java error mentioned in this topic as shown in the first screenshot.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:28:26 GMT</pubDate>
    <dc:creator>Wawee</dc:creator>
    <dc:date>2024-11-16T00:28:26Z</dc:date>
    <item>
      <title>Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2330762#M99812</link>
      <description>&lt;P&gt;Encountered the following error even though all the attached jar files have been added in the Routine Libraries including &lt;B&gt;commons-logging-1.1.3&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000C7KTHAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138511i109C0782798ACF08/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000C7KTHAA3.png" alt="0693p00000C7KTHAA3.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Additional Details&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;1)&lt;/B&gt; &lt;B&gt;Talend version 7.3.1&lt;/B&gt; was downloaded from the following webpage:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000C7UgMAAV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147005iCE44035D9F50F562/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000C7UgMAAV.png" alt="0693p00000C7UgMAAV.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;2)&lt;/B&gt; The application is being executed using &lt;B&gt;jdk-11.0.10&lt;/B&gt; through the following command. (&lt;I&gt;It was previously working on &lt;/I&gt;&lt;B&gt;&lt;I&gt;jdk-15.0.1&lt;/I&gt;&lt;/B&gt;&lt;I&gt;; but after encountering Java error after re-installation, it is now working on the lower JDK version 11.&lt;/I&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;D:\&amp;gt;TalendStudio\Talend-Studio-20200219_1130-V7.3.1\Talend-Studio-win-x86_64.exe -vm TalendStudio\jdk-11.0.10\bin&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;3) &lt;/B&gt;A &lt;B&gt;ParameterStore_Cred&lt;/B&gt; was created in the &lt;B&gt;Repository&lt;/B&gt; under &lt;B&gt;Code &lt;/B&gt;&amp;gt; &lt;B&gt;Routines&lt;/B&gt; (&lt;I&gt;Code used is in attached file, &lt;/I&gt;&lt;B&gt;&lt;I&gt;ParameterStore_Cred.java&lt;/I&gt;&lt;/B&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;4)&lt;/B&gt; The &lt;B&gt;Routine Libraries&lt;/B&gt; of &lt;B&gt;ParameterStore_Cred&lt;/B&gt; was edited to add the JAR files from attached &lt;B&gt;jar_files.zip&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;5) &lt;/B&gt;The sample Talend job has the following components:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000C7UuwAAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133707i04D772496F5851EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000C7UuwAAF.png" alt="0693p00000C7UuwAAF.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;6)&lt;/B&gt; The &lt;B&gt;tJava_1&lt;/B&gt; component contains the following line of code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;String str=ParameterStore_Cred.getParameter(context.parameter_store);&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;System.out.println(str);&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;globalMap.put("key", str);&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;7)&lt;/B&gt; The &lt;B&gt;Target Execution&lt;/B&gt; of the job is a &lt;B&gt;Custom Job Server&lt;/B&gt; in Talend cloud through &lt;B&gt;AWS&lt;/B&gt;.&lt;/P&gt;&lt;P&gt;&lt;I&gt;Example:&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000C7V0zAAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129599iF074EC4D1E542F84/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000C7V0zAAF.png" alt="0693p00000C7V0zAAF.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/B&gt; During execution, it encountered the Java error mentioned in this topic as shown in the first screenshot.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:28:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2330762#M99812</guid>
      <dc:creator>Wawee</dc:creator>
      <dc:date>2024-11-16T00:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2330763#M99813</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Could you please clarify in which Talend version/edition you are? Have you tried to use a tLibraryLoad component to force packaging the lib to see if it works?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 03:35:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2330763#M99813</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-10T03:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2330764#M99814</link>
      <description>&lt;P&gt;Hi Sabrina,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply. I have updated the details above with additional information; including Talend version/edition. We do not have any requirement to use a &lt;B&gt;tLibraryLoad&lt;/B&gt; component; so I did not used that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Sherwin&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 16:16:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2330764#M99814</guid>
      <dc:creator>Wawee</dc:creator>
      <dc:date>2021-03-10T16:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2330765#M99815</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In the module view, all jar relative to your components are installed successfully in studio?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is online documentation about: &lt;A href="https://help.talend.com/r/tEyY3ToCtMbCRoW9EsWP2w/pbw10jzfEPmyS~I_fnucsA" alt="https://help.talend.com/r/tEyY3ToCtMbCRoW9EsWP2w/pbw10jzfEPmyS~I_fnucsA" target="_blank"&gt;TalendHelpCenter: Installing external modules manually using the Modules view.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 10:27:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2330765#M99815</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-11T10:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2330766#M99816</link>
      <description>&lt;P&gt;Yes. The modules for my Talend job components were all successfully installed in Talend Studio. I added additional jar files in the libraries of the routine code; but Talend can't seem to find the class associated to it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also tried the following; but still has similar &lt;B&gt;NoClassDefFoundError&lt;/B&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Talend Studio menu -- File -&amp;gt; Edit Project Properties -&amp;gt; Build -&amp;gt; Click on Maven -&amp;gt; Click on 'Force full re-synchronize poms'&lt;/LI&gt;&lt;LI&gt;Used &lt;B&gt;tLibraryLoad&lt;/B&gt; with all the same JAR files added to the routine code.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 12 Mar 2021 12:35:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-in-thread-quot-main-quot-java-lang/m-p/2330766#M99816</guid>
      <dc:creator>Wawee</dc:creator>
      <dc:date>2021-03-12T12:35:31Z</dc:date>
    </item>
  </channel>
</rss>

