<?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 Re: [resolved] java.lang.ClassNotFoundException when deploying job in runtime in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-java-lang-ClassNotFoundException-when-deploying-job-in/m-p/2225816#M17962</link>
    <description>Hi Gabriel,&amp;nbsp; 
&lt;BR /&gt;I see log4j as resolved. Please see attached.&amp;nbsp; 
&lt;BR /&gt;I removed tLibraryLoad that had log4j load in talend job and I still get same ClassNotFoundException in runtime environment but it works fine in studio. 
&lt;BR /&gt;Thank you, 
&lt;BR /&gt;Svetlana 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCve.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140365iEE79670DBA97F69A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCve.png" alt="0683p000009MCve.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Thu, 07 Jan 2016 22:09:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-01-07T22:09:36Z</dc:date>
    <item>
      <title>[resolved] java.lang.ClassNotFoundException when deploying job in runtime</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-java-lang-ClassNotFoundException-when-deploying-job-in/m-p/2225809#M17955</link>
      <description>Hello Team, 
&lt;BR /&gt;I am using log4j in my custom java component. In talend job I have separate tLibraryLoad component to import log4j jar file. Everything works fine as long as I test it in talend studio. But as soon as I export this job and deploy it to runtime I get ClassNotFoundException (below). I export job by right-click &amp;gt; build job &amp;gt; OSGI bundle for ESB. Then I copy jar file into&amp;nbsp;Runtime_ESBSE\container\deploy folder. It deploys fine. But when I invoke service, I get this error.&amp;nbsp; 
&lt;BR /&gt;I checked other posts on the forum that recommend dropping jar file into container/lib/ext - tried that, did not help. 
&lt;BR /&gt;Please advise. 
&lt;BR /&gt;Thank you! 
&lt;BR /&gt;Svetlana 
&lt;BR /&gt;Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Layout 
&lt;BR /&gt;at local_project.generalinformationservice_0_1.GeneralInformationService.tRESTRequest_1_LoopProcess(GeneralInformationService.java:7910) 
&lt;BR /&gt;at local_project.generalinformationservice_0_1.GeneralInformationService$RestServiceProviderImpl4TalendJob.processRequest(GeneralInformationService.java:1051) 
&lt;BR /&gt;... 28 more 
&lt;BR /&gt;Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Layout cannot be found by local_project.GeneralInformationService_0.1.0 
&lt;BR /&gt;at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:389) 
&lt;BR /&gt;at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352) 
&lt;BR /&gt;at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344) 
&lt;BR /&gt;at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160) 
&lt;BR /&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:358)</description>
      <pubDate>Sat, 16 Nov 2024 10:52:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-java-lang-ClassNotFoundException-when-deploying-job-in/m-p/2225809#M17955</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] java.lang.ClassNotFoundException when deploying job in runtime</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-java-lang-ClassNotFoundException-when-deploying-job-in/m-p/2225810#M17956</link>
      <description>Hi,&lt;BR /&gt;"in my custom java component"&amp;nbsp; do you mean tJava component?&lt;BR /&gt;If yes, do you use any other specific class from org.apache.log4j.* package except Logger class? or just using Logger class to log something such as: &lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(testLog.class);&lt;BR /&gt;logger.info("hello!");&lt;/PRE&gt;&lt;BR /&gt;For nomal usecase, you don't need to load log4j using tLibraryLoad because log4j classes are loaded by default.&lt;BR /&gt;Regards.</description>
      <pubDate>Thu, 07 Jan 2016 06:02:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-java-lang-ClassNotFoundException-when-deploying-job-in/m-p/2225810#M17956</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-07T06:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] java.lang.ClassNotFoundException when deploying job in runtime</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-java-lang-ClassNotFoundException-when-deploying-job-in/m-p/2225811#M17957</link>
      <description>Hi xldai, 
&lt;BR /&gt;I use tJavaFlex component which calls java methods from my own external java library. Those methods are the ones that use log4j. Yes, I use other classes from org.apache.log4j.*. The reason being is that I could not make it work directly with log4j.properties config file, so I decided to do all logger configuration programmatically in java. 
&lt;BR /&gt;Please see attached screenshot of my tJavaFlex component configuration. It makes call to java: 
&lt;BR /&gt; 
&lt;I&gt;GeneralInfoService service = new GeneralInfoService();&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;GetJobTitlesResponseDTO response = service.getJobTitles();&lt;/I&gt; 
&lt;BR /&gt;inside GeneralInfoService i do log4j configuation as this: 
&lt;BR /&gt; 
&lt;I&gt;import org.apache.log4j.Appender;&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;import org.apache.log4j.ConsoleAppender;&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;import org.apache.log4j.FileAppender;&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;import org.apache.log4j.Level;&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;import org.apache.log4j.Logger;&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;import org.apache.log4j.PatternLayout;&lt;/I&gt; 
&lt;BR /&gt;... 
&lt;BR /&gt;... 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;I&gt;PatternLayout layout = new PatternLayout();&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String conversionPattern = "%-7p %d %c %x - %m%n";&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; layout.setConversionPattern(conversionPattern);&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp;&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // creates console appender&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ConsoleAppender consoleAppender = new ConsoleAppender();&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; consoleAppender.setLayout(layout);&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; consoleAppender.activateOptions();&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp;&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // creates file appender&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FileAppender fileAppender = new FileAppender();&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fileAppender.setFile("C:/Talend/nsc1.log");&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fileAppender.setLayout(layout);&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fileAppender.activateOptions();&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp;&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // configures the root logger&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Logger rootLogger = Logger.getRootLogger();&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rootLogger.setLevel(Level.DEBUG);&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rootLogger.addAppender(consoleAppender);&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rootLogger.addAppender(fileAppender);&lt;/I&gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;I&gt;logger = Logger.getLogger(GeneralInfoService.class);&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; logger.debug("this is a debug log message");&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; logger.info("this is a information log message");&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; logger.warn("this is a warning log message");&lt;/I&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Again, it works perfectly fine in studio and breaks when i deploy it to runtime on the same machine. 
&lt;BR /&gt;Please advise. 
&lt;BR /&gt;Thank you very much! 
&lt;BR /&gt;Svetlana 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCvV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128990iD87B07CC99DDD954/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCvV.png" alt="0683p000009MCvV.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 07 Jan 2016 13:20:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-java-lang-ClassNotFoundException-when-deploying-job-in/m-p/2225811#M17957</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-07T13:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] java.lang.ClassNotFoundException when deploying job in runtime</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-java-lang-ClassNotFoundException-when-deploying-job-in/m-p/2225812#M17958</link>
      <description>Hi Svetlana&lt;BR /&gt;just a hint to check - in the generated OSGi bundle - could you check if the org.apache.log4j package is imported? You can doing by inspecting the META-INF/ folder of the jar file and as well try to see the Karaf console and type 'headers &amp;lt;bundle id&amp;gt;' , you should see what packages are imported..&lt;BR /&gt;g.</description>
      <pubDate>Thu, 07 Jan 2016 14:16:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-java-lang-ClassNotFoundException-when-deploying-job-in/m-p/2225812#M17958</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-07T14:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] java.lang.ClassNotFoundException when deploying job in runtime</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-java-lang-ClassNotFoundException-when-deploying-job-in/m-p/2225813#M17959</link>
      <description>Hi Gabriel, 
&lt;BR /&gt;I checked generated jar osgi bundle. In manifest.mf file I see the following lines related to org.apache.log4j: 
&lt;BR /&gt;Import-Package:&amp;nbsp;...resolution:=optional,org.apache.log4j ;resolution:=optional,... 
&lt;BR /&gt;Private-Package: ...&amp;nbsp;log4j.properties... 
&lt;BR /&gt;Executing headers command for the bundle id brings same results: 
&lt;BR /&gt;Import-Package = 
&lt;BR /&gt;.... 
&lt;BR /&gt;org.apache.log4j;resolution:=optional, 
&lt;BR /&gt;... 
&lt;BR /&gt;Private-Package = 
&lt;BR /&gt;... 
&lt;BR /&gt;log4j.properties, 
&lt;BR /&gt;... 
&lt;BR /&gt;it does not appear on Bundle-ClassPath line though, where my java library shows up: 
&lt;BR /&gt;Bundle-ClassPath = .,lib/systemRoutines.jar,lib/json-path-1.2.0.jar,lib/json-sma 
&lt;BR /&gt;rt-2.1.0.jar,lib/userRoutines.jar,lib/NelsonESBServiceLib.jar 
&lt;BR /&gt;Thank you, 
&lt;BR /&gt;Svetlana</description>
      <pubDate>Thu, 07 Jan 2016 14:36:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-java-lang-ClassNotFoundException-when-deploying-job-in/m-p/2225813#M17959</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-07T14:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] java.lang.ClassNotFoundException when deploying job in runtime</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-java-lang-ClassNotFoundException-when-deploying-job-in/m-p/2225814#M17960</link>
      <description>Another thing that absolutely puzzles me is when I do configuration using a file (log4j.xml for example) in java, i.e. 
&lt;BR /&gt;static Logger logger = Logger.getLogger(GeneralInfoService.class.getName()); 
&lt;BR /&gt;.. 
&lt;BR /&gt;DOMConfigurator.configure("C:\\Users\\zvers\\workspaceEclipse\\ServiceLib\\properties\\log4j.xml"); 
&lt;BR /&gt;.. 
&lt;BR /&gt;it works perfectly in eclipse, it works perfectly in talend studio, but as soon as i move osgi bundle to runtime - log file which is specified in log4j.xml is not being updated at all. In runtime i lose all the logging. 
&lt;BR /&gt;Thank you! 
&lt;BR /&gt;Svetlana</description>
      <pubDate>Thu, 07 Jan 2016 17:00:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-java-lang-ClassNotFoundException-when-deploying-job-in/m-p/2225814#M17960</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-07T17:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] java.lang.ClassNotFoundException when deploying job in runtime</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-java-lang-ClassNotFoundException-when-deploying-job-in/m-p/2225815#M17961</link>
      <description>Hello Svetlana
&lt;BR /&gt;about the resolution - in the header printout - I don't know how you see it. I see dependencies which are optional, but not resolved as red. Then the bundle resolves, starts, but the code throws an exception trying to load the class.
&lt;BR /&gt;Apache Log4j is already part of the TESB deployment (pax-logging-api). So it is ok that it's not bundled in your jar file. But - you should rely on the version provided by the TESB. It may happend that you're using different version and the class package won't resolve. 
&lt;BR /&gt;Logging is provided by the Pax Logging framework, so the configuration can be found in the etc/org.ops4j.pax.logging.cfg file
&lt;BR /&gt;g.</description>
      <pubDate>Thu, 07 Jan 2016 20:18:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-java-lang-ClassNotFoundException-when-deploying-job-in/m-p/2225815#M17961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-07T20:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] java.lang.ClassNotFoundException when deploying job in runtime</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-java-lang-ClassNotFoundException-when-deploying-job-in/m-p/2225816#M17962</link>
      <description>Hi Gabriel,&amp;nbsp; 
&lt;BR /&gt;I see log4j as resolved. Please see attached.&amp;nbsp; 
&lt;BR /&gt;I removed tLibraryLoad that had log4j load in talend job and I still get same ClassNotFoundException in runtime environment but it works fine in studio. 
&lt;BR /&gt;Thank you, 
&lt;BR /&gt;Svetlana 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCve.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140365iEE79670DBA97F69A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCve.png" alt="0683p000009MCve.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 07 Jan 2016 22:09:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-java-lang-ClassNotFoundException-when-deploying-job-in/m-p/2225816#M17962</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-07T22:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] java.lang.ClassNotFoundException when deploying job in runtime</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-java-lang-ClassNotFoundException-when-deploying-job-in/m-p/2225817#M17963</link>
      <description>Hi, Svetlana 
&lt;BR /&gt;Like gusto said, the Runtime container is using pax-logging-api as Logging framework which wrap log4j, slf4j, common logging etc. but for some reason it only packed limited classes in the org.apache.log4j package 
&lt;BR /&gt;Category.class 
&lt;BR /&gt;Level.class 
&lt;BR /&gt;Logger.class 
&lt;BR /&gt;MDC.class 
&lt;BR /&gt;NDC.class 
&lt;BR /&gt;Priority.class 
&lt;BR /&gt;PropertyConfigurator.class 
&lt;BR /&gt;For nomal usecase it would be OK but in your case, some other log4j classes will be used during runtime. the "org.apache.log4j ;resolution:=optional" shouldn't appear in the Import-Package: of generated Manifest of the bundle in case you're using tLibraryLoad to load log4j lib. 
&lt;BR /&gt;the correct Manifest should look like: 
&lt;BR /&gt;Import-Package:&amp;nbsp; .... (no org.apache.log4j....) .... 
&lt;BR /&gt;Bundle-ClassPath:&amp;nbsp; .... ,lib/log4j-1.2.15.jar, ....&amp;nbsp; (or other log4j version) 
&lt;BR /&gt;Private-Package: .... org.apache.log4j, org.apache.log4j.spi, (other sub package of log4j ) .... 
&lt;BR /&gt;Could you try to remove the "org.apache.log4j" from Import-Package: of the bundle manually and try it again?&amp;nbsp; it maybe something like a bug in 6.0.1.&amp;nbsp; (I checked with TESB 6.1.1 it generates the correct OSGi headers) 
&lt;BR /&gt;Regards.</description>
      <pubDate>Fri, 08 Jan 2016 03:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-java-lang-ClassNotFoundException-when-deploying-job-in/m-p/2225817#M17963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-08T03:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] java.lang.ClassNotFoundException when deploying job in runtime</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-java-lang-ClassNotFoundException-when-deploying-job-in/m-p/2225818#M17964</link>
      <description>Hi xldai, 
&lt;BR /&gt;Yes, that worked! I manually removed org.apache.log4j from Import-Package section of manifest file and it fixed the issue. Thank you so much for this workaround 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;! Next I tried to build osgi package again, this time made sure that I dont have tLibraryLoad or any dynamic library reference to any log4j library and I also removed log4j from&amp;nbsp;Studio\workspace\.Java\lib. I still get incorrect manifest with log4j included which I had to modify manually. I will install new version of Talend to see if it works. 
&lt;BR /&gt;Thank you again! 
&lt;BR /&gt;Svetlana</description>
      <pubDate>Fri, 08 Jan 2016 14:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-java-lang-ClassNotFoundException-when-deploying-job-in/m-p/2225818#M17964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-08T14:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] java.lang.ClassNotFoundException when deploying job in runtime</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-java-lang-ClassNotFoundException-when-deploying-job-in/m-p/2225819#M17965</link>
      <description>Hi xldai, 
&lt;BR /&gt;I have tried 6.1.1. It still generates manifest file with log4j line which breaks in runtime. After playing around I confirmed the following: to make it working for all talend versions I have to do two things: 1. remove log4j line from manifest file and 2. have log4j.jar in container/lib/ext folder. I don't mind copying jar file into .../ext folder bud I would like to avoid manual manipulations of osgi bundle. Is there any way to configure built of osgi bundle and somehow exclude unwanted packages? 
&lt;BR /&gt;Thank you! 
&lt;BR /&gt;Svetlana</description>
      <pubDate>Fri, 08 Jan 2016 16:29:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-java-lang-ClassNotFoundException-when-deploying-job-in/m-p/2225819#M17965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-08T16:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] java.lang.ClassNotFoundException when deploying job in runtime</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-java-lang-ClassNotFoundException-when-deploying-job-in/m-p/2225820#M17966</link>
      <description>Hello Svetlana 
&lt;BR /&gt;the usage pattern is - as the project dependency set the Log4J or SLF4J version which is provided by the runtime (I believe in the TESB 5.6.2 it's Log4j 1.2.5 but please check yourself).&amp;nbsp;Use only the simple Logger interface as xldai mentioned 
&lt;BR /&gt; 
&lt;PRE&gt;private static final org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(MyClass.class);&lt;BR /&gt;logger.info("hello!");&lt;/PRE&gt; 
&lt;BR /&gt;The pattern, log level, log file, ... is to be configured in the property file etc/org.ops4j.pax.logging.cfg (so you don't refer the inner classes). This way you be reusing the logging infrastructure already provided. I know you may be limited with the features of the Pax Logging API implementation (e.g. I did not find any way to do any XML configuration supporting the compressed log archives), but for the rest you should be ok with that. 
&lt;BR /&gt;Gabriel</description>
      <pubDate>Sat, 09 Jan 2016 15:15:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-java-lang-ClassNotFoundException-when-deploying-job-in/m-p/2225820#M17966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-09T15:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] java.lang.ClassNotFoundException when deploying job in runtime</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-java-lang-ClassNotFoundException-when-deploying-job-in/m-p/2225821#M17967</link>
      <description>Hi Gabriel!
&lt;BR /&gt;Yes, after modifying etc/org.ops4j.pax config I see my basic logging. Thank you very much for your help!
&lt;BR /&gt;Cheers,
&lt;BR /&gt;Svetlana</description>
      <pubDate>Mon, 11 Jan 2016 14:07:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-java-lang-ClassNotFoundException-when-deploying-job-in/m-p/2225821#M17967</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-11T14:07:36Z</dc:date>
    </item>
  </channel>
</rss>

