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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Is it possible to exclude one or more jars from a build?

Hi all. I have a question. Ik have a project containing several jobs, child jobs and custom routines and components. When I run the job in Talend (Open Studio 5.4.1), everything is working as expected: the console stays empty when no errors or warnings occur.
However, when I build the job as an autonomous job and execute the job from a shell (cmd in my case), the console contains the following lines:
--
log4j:WARN No appenders could be found for logger (org.apache.commons.httpclient
.params.DefaultHttpParams).
log4j:WARN Please initialize the log4j system properly.
--
This seems to be caused by either the existence of log4j-1.2.15.jar or the absence of a log4j.properties file.
Without the Log4j jar, everything is working fine.
As far as I can see, there are two possible solutions:
1. Somehow mark the log4j jar for exclusion in the job build;
2. Somehow add a log4j.properties file to the job build;
Of course, both solutions can be performed manually, but I want to make sure every new build is working correctly without performing any manual steps afterwards.
As an extra question: I would like to know which component causes the log4j jar to be there. Is there any way to find out?
Any help is much appreciated!
Labels (2)
12 Replies
Anonymous
Not applicable
Author

Hello,
I have a collision between guava versions. One comed from guava.jar itself and one comes from com.google.guava...jar when 
using tRESTClient palette.
I can't seem to exclude this jar using mavan xmls.
Is there another way?
Thank you
Anonymous
Not applicable
Author

Hi  sysmq,
Have you tried to   exclude JAR files from the ClassPath?
Best regards
Sabrina
Anonymous
Not applicable
Author

Hi @xdshi,
I have the same sysmq's problem!!! I tried to exclude JAR files, as you suggested but I had thi Exception: Unresolved requirement: Require-Bundle: com.google.guava; bundle-version="[14.0.1,16.0.0)".
I need to use tRESTClient palette and I need to use GUAVA version 20.
I'd like a reply as soon as possible. Thank you.

Anna