<?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: tRESTResponse NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tRESTResponse-NoClassDefFoundError-org-apache-commons-lang/m-p/2297327#M143367</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Please put the jar file common-lang-2.6.jar to \lib\endorsed folder of runtime and deploy the job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swetha.&lt;/P&gt;</description>
    <pubDate>Sat, 13 Aug 2022 12:58:26 GMT</pubDate>
    <dc:creator>sgoppa</dc:creator>
    <dc:date>2022-08-13T12:58:26Z</dc:date>
    <item>
      <title>tRESTResponse NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRESTResponse-NoClassDefFoundError-org-apache-commons-lang/m-p/2297326#M143366</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt; 
&lt;P&gt;I have a job using tRESTResponse&amp;nbsp; and&amp;nbsp;tFileInputJSON (with XPATH option) components deployed and compiled with TOS ESB 7.3.1. If i run this job from TOS ESB 7.3.1 I have no problem at all, when I deploy and run it onto Talend Runtime 7.3.1, it fails with:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;Default;6;Java Exception;tRESTResponse_1;java.lang.RuntimeException:java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException;1&lt;/PRE&gt; 
&lt;P&gt;We found that class to be present on commons-lang-2.6 and not on commons-lang3. Talend Runtime actually have both of this modules:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;~/container/system/org/apache/commons/commons-lang3/3.8/commons-lang3-3.8.jar
~/container/system/org/apache/commons/commons-lang3/3.8.1/commons-lang3-3.8.1.jar
~/container/system/org/apache/commons/commons-lang3/3.9/commons-lang3-3.9.jar
~/container/system/commons-lang/commons-lang/2.6/commons-lang-2.6.jar&lt;/PRE&gt; 
&lt;P&gt;But our job still not loads commons-lang-2.6.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Inspecting the compiled artifact, we can found that inside /lib directory TOS build added&amp;nbsp;commons-lang3-3.8.1.jar:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;unzip -t MYRESTJOB_1.jar | grep commons-lang
    testing: lib/commons-lang3-3.8.1.jar   OK&lt;/PRE&gt; 
&lt;P&gt;Moreover, on the pom.xml of the project inside TOS workspace, we can find that commons-lang-2.6 is a dependency, together with commons-lang3:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;    &amp;lt;dependency&amp;gt;
      &amp;lt;groupId&amp;gt;commons-lang&amp;lt;/groupId&amp;gt;
      &amp;lt;artifactId&amp;gt;commons-lang&amp;lt;/artifactId&amp;gt;
      &amp;lt;version&amp;gt;2.6&amp;lt;/version&amp;gt;
    &amp;lt;/dependency&amp;gt;
    &amp;lt;dependency&amp;gt;
      &amp;lt;groupId&amp;gt;org.apache.commons&amp;lt;/groupId&amp;gt;
      &amp;lt;artifactId&amp;gt;commons-lang3&amp;lt;/artifactId&amp;gt;
      &amp;lt;version&amp;gt;3.8.1&amp;lt;/version&amp;gt;
    &amp;lt;/dependency&amp;gt;&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So how can made this job correctly compiled to run on Talend Runtime?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance&lt;/P&gt; 
&lt;P&gt;Roberto&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:56:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRESTResponse-NoClassDefFoundError-org-apache-commons-lang/m-p/2297326#M143366</guid>
      <dc:creator>rgiovanardi</dc:creator>
      <dc:date>2024-11-16T01:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: tRESTResponse NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRESTResponse-NoClassDefFoundError-org-apache-commons-lang/m-p/2297327#M143367</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Please put the jar file common-lang-2.6.jar to \lib\endorsed folder of runtime and deploy the job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swetha.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2022 12:58:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRESTResponse-NoClassDefFoundError-org-apache-commons-lang/m-p/2297327#M143367</guid>
      <dc:creator>sgoppa</dc:creator>
      <dc:date>2022-08-13T12:58:26Z</dc:date>
    </item>
  </channel>
</rss>

