<?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 java.lang.NoClassDefFoundError: javax/ws/rs/client/ClientException in tRESTClient in talend 6.5.1 in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/java-lang-NoClassDefFoundError-javax-ws-rs-client/m-p/2247317#M32542</link>
    <description>&lt;P&gt;I have been working on talend from last 6 years.Recently I have &lt;STRONG&gt;migrated from talend 6.2.1(licensed) to talend 6.5.1(licensed)&lt;/STRONG&gt;,All jobs and component are working fine except &lt;STRONG&gt;tRESTClient&lt;/STRONG&gt; .&lt;/P&gt; 
&lt;P&gt;When i am running jobs from local ,there is no run-time exception.However it is throwing below run time exception when running from application server(Unix).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;FYI-&amp;nbsp;i am taking .java files from talend and building the jar using ant script(i know its old way of doing but currently need solution using the same).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;Exception in thread &lt;STRONG&gt;"main" java.lang.NoClassDefFoundError: javax/ws/rs/client/ClientException&lt;/STRONG&gt;&lt;BR /&gt;at org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.createWebClient(JAXRSClientFactoryBean.java:210)&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Reason:-&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;In 6.2 &lt;STRONG&gt;tRESTClient&lt;/STRONG&gt; was using&amp;nbsp;&lt;STRONG&gt;javax.ws.rs-api-2.0-m10.jar&lt;/STRONG&gt; which was having&amp;nbsp;&lt;STRONG&gt;ClientException&amp;nbsp;&lt;/STRONG&gt; class(if you open the jar you can see this).However in &lt;STRONG&gt;Talend 6.5,&lt;/STRONG&gt;it is using&amp;nbsp; &lt;STRONG&gt;javax.ws.rs-api-2.0.1.jar &lt;/STRONG&gt;and it doesn't have&amp;nbsp;&lt;STRONG&gt;ClientException&lt;/STRONG&gt; class still it is looking for &lt;STRONG&gt;ClientException&lt;/STRONG&gt;&amp;nbsp;class during run time due to which my job is calling &lt;STRONG&gt;tRESTClient&lt;/STRONG&gt; by instantly coming out due to above exception.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please help me if it is issue with Talend 6.5 version-&lt;STRONG&gt;tRESTClient&lt;/STRONG&gt;&amp;nbsp; component or i need to use any other version of&amp;nbsp;&lt;STRONG&gt;javax.ws.rs-api-2*.jar?&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:59:56 GMT</pubDate>
    <dc:creator>rakeshpdgupta23</dc:creator>
    <dc:date>2024-11-16T02:59:56Z</dc:date>
    <item>
      <title>java.lang.NoClassDefFoundError: javax/ws/rs/client/ClientException in tRESTClient in talend 6.5.1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/java-lang-NoClassDefFoundError-javax-ws-rs-client/m-p/2247317#M32542</link>
      <description>&lt;P&gt;I have been working on talend from last 6 years.Recently I have &lt;STRONG&gt;migrated from talend 6.2.1(licensed) to talend 6.5.1(licensed)&lt;/STRONG&gt;,All jobs and component are working fine except &lt;STRONG&gt;tRESTClient&lt;/STRONG&gt; .&lt;/P&gt; 
&lt;P&gt;When i am running jobs from local ,there is no run-time exception.However it is throwing below run time exception when running from application server(Unix).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;FYI-&amp;nbsp;i am taking .java files from talend and building the jar using ant script(i know its old way of doing but currently need solution using the same).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;Exception in thread &lt;STRONG&gt;"main" java.lang.NoClassDefFoundError: javax/ws/rs/client/ClientException&lt;/STRONG&gt;&lt;BR /&gt;at org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.createWebClient(JAXRSClientFactoryBean.java:210)&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Reason:-&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;In 6.2 &lt;STRONG&gt;tRESTClient&lt;/STRONG&gt; was using&amp;nbsp;&lt;STRONG&gt;javax.ws.rs-api-2.0-m10.jar&lt;/STRONG&gt; which was having&amp;nbsp;&lt;STRONG&gt;ClientException&amp;nbsp;&lt;/STRONG&gt; class(if you open the jar you can see this).However in &lt;STRONG&gt;Talend 6.5,&lt;/STRONG&gt;it is using&amp;nbsp; &lt;STRONG&gt;javax.ws.rs-api-2.0.1.jar &lt;/STRONG&gt;and it doesn't have&amp;nbsp;&lt;STRONG&gt;ClientException&lt;/STRONG&gt; class still it is looking for &lt;STRONG&gt;ClientException&lt;/STRONG&gt;&amp;nbsp;class during run time due to which my job is calling &lt;STRONG&gt;tRESTClient&lt;/STRONG&gt; by instantly coming out due to above exception.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please help me if it is issue with Talend 6.5 version-&lt;STRONG&gt;tRESTClient&lt;/STRONG&gt;&amp;nbsp; component or i need to use any other version of&amp;nbsp;&lt;STRONG&gt;javax.ws.rs-api-2*.jar?&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:59:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/java-lang-NoClassDefFoundError-javax-ws-rs-client/m-p/2247317#M32542</guid>
      <dc:creator>rakeshpdgupta23</dc:creator>
      <dc:date>2024-11-16T02:59:56Z</dc:date>
    </item>
  </channel>
</rss>

