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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Wawee
Contributor
Contributor

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

Encountered the following error even though all the attached jar files have been added in the Routine Libraries including commons-logging-1.1.3

 

0693p00000C7KTHAA3.png 

Additional Details

1) Talend version 7.3.1 was downloaded from the following webpage:

0693p00000C7UgMAAV.png 

2) The application is being executed using jdk-11.0.10 through the following command. (It was previously working on jdk-15.0.1; but after encountering Java error after re-installation, it is now working on the lower JDK version 11.)

 

D:\>TalendStudio\Talend-Studio-20200219_1130-V7.3.1\Talend-Studio-win-x86_64.exe -vm TalendStudio\jdk-11.0.10\bin

 

3) A ParameterStore_Cred was created in the Repository under Code > Routines (Code used is in attached file, ParameterStore_Cred.java)

 

4) The Routine Libraries of ParameterStore_Cred was edited to add the JAR files from attached jar_files.zip

 

5) The sample Talend job has the following components:

0693p00000C7UuwAAF.png 

6) The tJava_1 component contains the following line of code:

 

String str=ParameterStore_Cred.getParameter(context.parameter_store);

System.out.println(str);

globalMap.put("key", str);

 

7) The Target Execution of the job is a Custom Job Server in Talend cloud through AWS.

Example:

0693p00000C7V0zAAF.png 

😎 During execution, it encountered the Java error mentioned in this topic as shown in the first screenshot.

Labels (3)
4 Replies
Anonymous
Not applicable

Hello,

Could you please clarify in which Talend version/edition you are? Have you tried to use a tLibraryLoad component to force packaging the lib to see if it works?

Best regards

Sabrina

Wawee
Contributor
Contributor
Author

Hi Sabrina,

 

Thanks for your reply. I have updated the details above with additional information; including Talend version/edition. We do not have any requirement to use a tLibraryLoad component; so I did not used that.

 

Best regards,

Sherwin

Anonymous
Not applicable

Hello,

In the module view, all jar relative to your components are installed successfully in studio?

 

Here is online documentation about: TalendHelpCenter: Installing external modules manually using the Modules view.

 

Best regards

 

Sabrina

Wawee
Contributor
Contributor
Author

Yes. The modules for my Talend job components were all successfully installed in Talend Studio. I added additional jar files in the libraries of the routine code; but Talend can't seem to find the class associated to it.

 

I have also tried the following; but still has similar NoClassDefFoundError:

  • Talend Studio menu -- File -> Edit Project Properties -> Build -> Click on Maven -> Click on 'Force full re-synchronize poms'
  • Used tLibraryLoad with all the same JAR files added to the routine code.