Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
JayQueue
Creator
Creator

NoClassDefFoundError in one project, other one works.

Hello,

I have a workspace where I created a Routine where I added my External Libs.

0695b00000L2Ir6AAF.png

This works fine.

Then I had exported it to a new workspace, added the same libs.

But when I run the job I get

Exception in thread "Thread-2" java.lang.NoClassDefFoundError: org/jose4j/jwt/JwtClaims

at routines.GenerateJWTRoeselare.buildClientAssertion(GenerateJWTRoeselare.java:43)

....

Caused by: java.lang.ClassNotFoundException: org.jose4j.jwt.JwtClaims

...

And when I open the code Generare there are no error for missing libs

0695b00000L2IsTAAV.png

And when I type code, it's autocompleted

0695b00000L2IpHAAV.png

Does someone have an idea what I'm missing?

Thanks!

Labels (3)
1 Solution

Accepted Solutions
JayQueue
Creator
Creator
Author

Solved.

I had to remove the GenerateJWTRoeselare user routine from the setup routine dependencies and add it again.

 

View solution in original post

3 Replies
JayQueue
Creator
Creator
Author

Solved.

I had to remove the GenerateJWTRoeselare user routine from the setup routine dependencies and add it again.

 

Anonymous
Not applicable

Hello,

Thanks for letting us know you have resolved this issue by yourself.

Here is a KB article about: How to include multiple runtime JAR files with a Job

Hope it will be helpful for your further processing.

Best regards

Sabrina

JayQueue
Creator
Creator
Author

Hi Sabrina,

 

I tried everything, from re-adding the libs to tLoadLib. All the libs were loaded since autocomplete worked in the code but it was a runtime that there was something wrong.

I deleted GenerateJWTRoeselare and added it again, then it worked. Could have been some caching mechanism going fubar.

0695b00000L2V84AAF.png