Runtime error on implementing SAML module on Mendix 7.23.26

0
Hi all,   We are implementing SSO functionality on our Mendix applications through AzureAD. For the same i downloaded SAML V1.16.5 (as compalitle for Mendix 7) from app store. Once i put the SAML startup in the After startup microflow of the project i am getting errors for which my app is failing to start. I am pretty much sure this is because of the conflicts on the jar files as SAML comes with its own set of jars which is already present because of other appstore module present.   I tried removing some of the jars from userlib after going through answers on Mendix forum. But still the issue persists. Current error is :      java.lang.NoSuchMethodError: org.apache.commons.codec.digest.DigestUtils.sha1Hex([B)Ljava/lang/String;     at saml20.implementation.security.SecurityHelper.addAllToKeyStore(SecurityHelper.java:273)     at saml20.implementation.security.SecurityHelper.appendToIdPKeyStore(SecurityHelper.java:254)     at saml20.implementation.security.CredentialRepository.setupTrustStore(CredentialRepository.java:180)     at saml20.implementation.security.CredentialRepository.updateConfiguration(CredentialRepository.java:95)     at saml20.implementation.SAMLRequestHandler.initServlet(SAMLRequestHandler.java:103)     at saml20.implementation.SAMLRequestHandler.<init>(SAMLRequestHandler.java:68)   Please give me insights on how to solve the conflicts. Also if we are deleting the duplicate jars do we need to delete the higher or lower version?   Thanks in advance, Dhrubo Ghosh  
asked
1 answers
0

Hi Dhrubo,

 

usually when a “java.lang.NoSuchMethodError” occurs it had to do with the libraries in your application.

There are either libraries with different version in the project directory “<your project main dir>\userlib”, you can delete the lowest versions of the libraries.

Or there are different libraries calling the same function, with one of them missing the method being called, which you will have to analyse.

 

This question has been answered previously in multiple questions:

https://forum.mendix.com/link/questions/92608

https://forum.mendix.com/link/questions/104503

https://forum.mendix.com/link/questions/86721

 

 

answered