8000 Keycloak SPI: NoClassDefFoundError when using Resilience4j for external API retry mechanism · keycloak keycloak · Discussion #41210 · GitHub
[go: up one dir, main page]

Skip to content
Discussion options

You must be logged in to vote

Does the dependency contain any other transitive dependencies? In that case, you'd need to add all these JARs to the providers folder as well as the dependency JAR, or using shaded JAR that contains all necessary JARS. You should also check if your extensions does not use <scope>provided</scope> for the dependency.

The other approach is to use the keycloak-quarkus-extensions tool that provides you the ability to build your own Keycloak distribution with all the necessary transitive dependencies.

Something like:

./kc-extension.sh add io.github.resilience4j:resilience4j-retry:2.3.0
./kc-extension.sh build
# you should be able to start the server with your dependency
./kc-extension.sh start-…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mabartos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
0