Project: talenddataquality
Issue TDQ-8565: cmdline project can not found the jar which manually added to  lid/java
1. log on studio, create db2 connection(no jars in studio, so should manually added to lib/java) 2. create report about the connection. 3. exit the project. 4. log on a cmdline project (commandline.bat and Talend-Studio-win-x86_64.exe in same folder, so the jar already exist) 5. import the report created on step 2. 6. try to execute Report, get error. {code} !STACK 0 java.lang.ClassNotFoundException: com.ibm.db2.jcc.DB2Driver org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506) org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422) org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410) org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) java.lang.ClassLoader.loadClass(ClassLoader.java:356) java.lang.Class.forName0(Native Method) java.lang.Class.forName(Class.java:186) org.talend.cwm.db.connection.ConnectionUtils.getClassDriver(ConnectionUtils.java:580) org.talend.cwm.db.connection.ConnectionUtils.createConnection(ConnectionUtils.java:173) org.talend.cwm.db.connection.ConnectionUtils.checkConnection(ConnectionUtils.java:224) org.talend.cwm.db.connection.ConnectionUtils.isConnectionAvailable(ConnectionUtils.java:354) org.talend.dataquality.reporting.engine.ReportDocGenerator.validateReport(ReportDocGenerator.java:309) org.talend.dataquality.reporting.engine.ReportDocGenerator.generate(ReportDocGenerator.java:185) org.talend.dataprofiler.core.tdq.action.LocalReportDocGenerator.generate(LocalReportDocGenerator.java:130) org.talend.datacleansing.core.service.TDQReportService.executeReport(TDQReportService.java:71) org.talend.commandline.command.CommandProcessor.executeReport(CommandProcessor.java:556) org.talend.commandline.command.ExtensionCommandSwitch.caseExecuteReportCommand(ExtensionCommandSwitch.java:79) org.talend.commandline.client.command.extension.AbstractExtensionCommandSwitch.doSwitch(AbstractExtensionCommandSwitch.java:35) org.talend.commandline.command.CommandProcessorSwitch.caseExtensionCommand(CommandProcessorSwitch.java:161) org.talend.commandline.client.util.CommandAbstractSwitch.doSwitch(CommandAbstractSwitch.java:70) org.talend.commandline.command.CommandConsumer.executeCommand(CommandConsumer.java:57) org.talend.commandline.command.CommandConsumer.execute(CommandConsumer.java:35) org.talend.commandline.mode.ServerCommandLine$CommmandConsumerRunnable.run(ServerCommandLine.java:139) java.lang.Thread.run(Thread.java:722) !ENTRY org.talend.platform.logging 4 0 2014-01-21 15:47:00.773 !MESSAGE 2014-01-21 15:47:00,772 ERROR org.talend.dataquality.reporting.engine.ReportDocGenerator - Run analysis error: abc_1 : Driver not found: com.ibm.db2.jcc.DB2Driver !ENTRY org.talend.platform.logging 1 0 2014-01-21 15:47:00.858 !MESSAGE 2014-01-21 15:47:00,858 INFO org.talend.datacleansing.core.service.TDQReportService - Generated successfully, the report document is store in null !ENTRY org.talend.platform.logging 1 0 2014-01-21 15:49:03.297 !MESSAGE 2014-01-21 15:49:03,296 INFO org.talend.dataprofiler.datamart.utils.DatamartUtils - The structure of talend_dq113525 EXIST, do you want to handle the connection? !ENTRY org.talend.platform.logging 4 0 2014-01-21 15:49:03.330 !MESSAGE 2014-01-21 15:49:03,325 ERROR org.talend.cwm.db.connection.ConnectionUtils - com.ibm.db2.jcc.DB2Driver {code}
Story points: 8