Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
rakeshpdgupta23
Contributor
Contributor

java.lang.NoClassDefFoundError: javax/ws/rs/client/ClientException in tRESTClient in talend 6.5.1

I have been working on talend from last 6 years.Recently I have migrated from talend 6.2.1(licensed) to talend 6.5.1(licensed),All jobs and component are working fine except tRESTClient .

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).

 

FYI- 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).

 

Error:

Exception in thread "main" java.lang.NoClassDefFoundError: javax/ws/rs/client/ClientException
at org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.createWebClient(JAXRSClientFactoryBean.java:210)

Reason:-

In 6.2 tRESTClient was using javax.ws.rs-api-2.0-m10.jar which was having ClientException  class(if you open the jar you can see this).However in Talend 6.5,it is using  javax.ws.rs-api-2.0.1.jar and it doesn't have ClientException class still it is looking for ClientException class during run time due to which my job is calling tRESTClient by instantly coming out due to above exception.

 

 

 

Please help me if it is issue with Talend 6.5 version-tRESTClient  component or i need to use any other version of javax.ws.rs-api-2*.jar?

 

 

Labels (5)
0 Replies