Repository navigation
script engine not found but scripts are enabled #30448
|
Keycloak 24.0.1 in Kubernetes Cluster. I get the message Could not find ScriptEngine for script Expected behavior Actual behavior the script engine is in release 21.1.0 already included. ### In the previous version, when Keycloak was used on Java 17 with Javascript providers it was needed to add the Nashorn javascript engine to the distribution. This is no longer needed as Nashorn javascript engine is available in Keycloak server by default. see it always run into exception. How to Reproduce?
Anything else? |
Answered by
michaelottofits
Sep 12, 2025
Replies: 1 comment 1 reply
|
Hey @michaelottofits have you fixed it? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @KevPace
I created an image based on quay.io/keycloak/keycloak:26.3.0 and added the Nashorn JAR file with ASM dependencies to the provider folder “https://github.com/openjdk/nashorn”. It is important that the variable KC_PROXY_HEADERS=xforwarded is set, otherwise it will not work.