I'm trying to call a simple REST API in Talend. I've tried the tRestClient component but ran into problems (see here). Now i'm trying to use the tRest component but get a different error.
Talend error
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
com.sun.jersey cannot be resolved to a type
com.sun.jersey cannot be resolved to a type
com.sun.jersey.client cannot be resolved to a variable
com.sun.jersey cannot be resolved to a type
com.sun.jersey cannot be resolved to a type
com.sun.jersey.api.client.Client cannot be resolved to a type
com.sun.jersey cannot be resolved to a type
com.sun.jersey cannot be resolved to a type
com.sun.jersey cannot be resolved to a type
com.sun.jersey cannot be resolved to a type
My Talend job is just a tRest into a tLogRow. The tRest component is configured with the API call URL, HTTP Method GET, and i've added HTTP Headers "Accept" "application/*****.1.0+json" which are the values specified by the API. I can call the API on my PC from other software and i get a success response.
I've installed the latest jar file from here and have tried using a tLibraryLoad to load this jar before the tRest client but get the same error.
Any ideas?
Issue was solved by overwriting both jersey-client-1.4-6.0.0.jar and jersey-client-1.4-6.0.0.jar iwth the version from a colleague's PC.