Factory method 'ldapAuthenticationHandlers' No executable compiled script factory is found.

178 views
Skip to first unread message

Aaron Chantrill

unread,
Apr 23, 2025, 2:03:13 PM4/23/25
to cas-...@apereo.org
I'm getting this error message after migrating from CAS 7.0 to CAS 7.1. I have the line:
implementation "org.apereo.cas:cas-server-support-ldap:${project.'cas.version'}"
in my build.gradle file, which always worked before, and is still listed on the CAS 7.1 documentation for LDAP authentication. Does anyone have any idea why this is happening? I feel like I must be missing a new setting somewhere.

Thank you.
--
Aaron Chantrill
ID: 000490892
BS Computer Science (1/1/2019)
Tom Grant
304-445-5230 US Eastern Time

Ray Bon

unread,
Apr 23, 2025, 10:14:43 PM4/23/25
to cas-...@apereo.org
Aaron,

If this is a runtime error, please include at least some of the log file surrounding this error.
Do you have a script defined in cas config?
You may need to include:
implementation "org.apereo.cas:cas-server-core-scripting"

You should not need ${project.'cas.version'} with the dependency lines.
You could also move to 7.2

Ray

From: 'Aaron Chantrill' via CAS Community <cas-...@apereo.org>
Sent: April 23, 2025 08:16
To: cas-...@apereo.org <cas-...@apereo.org>
Subject: [cas-user] Factory method 'ldapAuthenticationHandlers' No executable compiled script factory is found.
 
--
- Website: https://apereo.github.io/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAJt4T%3DsncE_Cx3b9SGVS-_xWChYqhWW8v7Vxjk7149v1jv9psA%40mail.gmail.com.

Aaron Chantrill

unread,
Apr 24, 2025, 9:57:43 AM4/24/25
to cas-...@apereo.org
Thank you so much for getting back to me. I am getting the same error in 7.2 and you absolutely nailed it. The issue was a groovy script I am using to massage some of the LDAP attributes into the correct format. This include was unnecessary in CAS 7.0, but appears to be required in 7.1 and 7.2. This explains why I was able to run CAS after commenting out the LDAP section of my cas.properties file. I completely missed that new note in the documentation: https://apereo.github.io/cas/7.2.x//integration/Apache-Groovy-Scripting.html

Thank you,
Aaron Chantrill

Reply all
Reply to author
Forward
0 new messages