SAML Issue after upgrading the Mendix and SAML (org.bouncycastle.asn1.DERBitString Issue)

0
We faced a SAML SSO issue after upgrading Mendix Studio to version 9.24.31.  To fix it, we upgraded the SAML module but encountered an error: "SSO can't be added in path." To resolve this, we removed the org.apache.servicemix.bundles.opensaml-2.6.0_3 JAR file, but then got another error:   Caused by: java.lang.NoSuchMethodError: 'org.bouncycastle.asn1.DERBitString org.bouncycastle.asn1.x509.SubjectPublicKeyInfo.getPublicKeyData()'   Since I am using pdfbox-app-2.0.3 for PDF extraction, I cannot remove it. Please suggest a solution.
asked
1 answers
0

I think you need to clean up your application's userlib.

 

Firstly, I would remove all .jar files that SAML uses, but that no other modules are have a requiredlib for.

Secondly, I would reinstall SAML. This should restore the latest versions of the .jar files SAML needs.

Thirdly, remove any old bouncy castle jar files. These all start with bc, keeping only the ones ending *-jdk18on-1.78.1

 

Now clean your deployment directory, and try running your application. It should work.

 

I hope this helps. Good luck!

answered