Four Stars

Library dependency conflict between tLibraryLoadComponent and Talend own's library

I'm having a problem due to a library conflict. I have a subjob which uses a S3 component (it has as dependency httpclient-4.2.1). And I have another subjob where I need to used the httpclient-4.3.5 library through tLibraryLoad.

 

If I build the main job using Talend Studio, whose includes both subjobs. The zip generated includes both libraries in the 'lib' folder inside the zip file. And in the classpath of the java command inside the sh file (which it comes included in the zip file also), it contains both libraries. This classpath puts first the http-client-4.2.1 library. And if I import this build file and run the task associated, I have a problem due to a conflict between these libraries.

 

But when I build the job through the command line, it generates a zip file with both libraries too. But in the classpath inside the sh file, it comes first the httpclient-4.3.5 library. In this way, when I run the task, I don't have any libraries conflict.

 

So, my question it's if it exists any configuration in Talend Studio to build the jobs like command line or something to indicate libraries preference in the classpath.

4 REPLIES
Moderator

Re: Library dependency conflict between tLibraryLoadComponent and Talend own's library

Hello,

Could you please indicate on which build version you got this issue? Screenshots of your job setting will be preferred.

Best regards

Sabrina

 

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars

Re: Library dependency conflict between tLibraryLoadComponent and Talend own's library

Hi,

My Talend studio build version is: 

Version: 5.6.1
Build id: 20141207_1530

 

About the screenshots of my settings. I don't know what settings do you refer. If you specify it, I can post it.

 

Best regards

Moderator

Re: Library dependency conflict between tLibraryLoadComponent and Talend own's library

Hello,

Could you please post your job design screenshots into forum? Does this issue repro on other build version?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars

Re: Library dependency conflict between tLibraryLoadComponent and Talend own's library

I cann't change the build version. We only work with this version. I also post the screenshot of both subjobs. Both of them are included inside the same main job, and it's necessary use the httpClient-4.3.5 in the first subjob. 

 

Best Regards