SAML Error - Mendix server fails and cant startup again

1
We're trying to use SSO for our application. We've loaded the module and configured with metadata. The application starts up and runs for while and then errors out (shuts down). We cannot start it again.   Error in log: Oct 18 14:49:06.010 - INFO - SAML_SSO: Loading urn:oasis:names:tc:SAML:2.0:protocol metadata from /srv/cloud/slots/tr10000/deploy/data/tmp/saml_IdPFile1508356146009.xml Oct 18 14:49:06.304 - CRITICAL - ActionManager: Error in execution of monitored action '{"name":"SAML20.Startup","type":"Microflow"}' (execution id: e8129278-4b1b-4cfb-93e9-326ca87b8e54, execution type: CUSTOM) Oct 18 14:49:06.307 - CRITICAL - ActionManager: (1/55) java.lang.NoSuchMethodError: org.apache.commons.codec.digest.DigestUtils.sha1Hex([B)Ljava/lang/String; Oct 18 14:49:06.307 - CRITICAL - ActionManager: (2/55) #011at saml20.implementation.security.SecurityHelper.addAllToKeyStore(SecurityHelper.java:289)     Anyone know what could be causing this? We have other apps using SSO and they run just fine.
asked
2 answers
4

Hi Brian, just saw your question here. I've seen this caused by JAR file conflict in a few projects recently. Essentially you end up with more than 1 JAR file in your userlib folder that provides the same class. One of them is an older version and doesn't have the method above.

Here's one forum question about it: https://forum.mendix.com/link/questions/87149

And another that I commented on recently, with some instructions on how to find the problem JAR: https://forum.mendix.com/link/questions/88190

answered
1

File a bug report. I have never seen this error. Looks like an after startup error of the SAML module. The only thing I can think of is checking your userlib on duplicate libraries.

Regards,

Ronald

answered