ClassNotFoundException for communitycommons.StringUtils on premise server

0
Hi,    I'm seeing the error: java.lang.ClassNotFoundException: communitycommons.StringUtils in the on premise deployment. I am able to run locally without any errors.   Through a combination of removing lib files in my local env, cleaning the userlib, re-downloading modules (generally community commons and possibly SAML or GlobalSearch as sometimes removing a userlib has triggered class not found issues in those other modules), in the past I have been able to get things working again on the server .. but then it reoccurs again.    Today I  re-downloaded the SAML module which is when it started occurring.   For community commons libs I have : commons-lang3-3.16.0 in vendorlib commons-lang-2.6 in vendorlib org.apache.commons.lang3 in userlib   I just deleted all 3 of those and then redownloaded community commons v10.2.0 (Modeler version 10.16.0) and the first 2 were libraries were generated. I was able to run locally without errors, but I'm still getting the same error on the server.   Not sure if this is related to SAML but I'm using SAML 4.0.1   Appreciate any guidance!          
asked
2 answers
5

Hello Tracy

As suggested by Amit this can be due to duplicate jar only.

 

You can try below market place module also.

 

https://community.mendix.com/link/space/marketplace/questions/143378

 

https://community.mendix.com/link/space/deployment/questions/105705

 

image.png

answered
0

Hi Tracy Corson,

 

This types of issues normally occur when we have duplicate jar files in userlib folder. Go through the user lib folder delete the duplicate jar files, keep the once with higher versions. Clean your deployment directory re-run the app verify the changes and deploy it again to test.

 

Thanks

answered