-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keycloak 17 (jboss): java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64 #72
Comments
Which version of the plugin are you using? The last version supporting Keycloak 17 is: Any version after that has been made for newer versions of Keycloak and as such might not work properly with older ones (see the |
sorry, forgot to mention that. I did build the plugin from the commit mentioned in the readme. So that can't be it. |
I think jboss expects a My shade-workaround avoids the need for the module.xml by just bundling the dependencies. |
Ah, I understand now. Therefore, there isn't really anything that can be done in the This leads me to believe this issue should be closed, although it will surely serve as a good guide for anyone trying to get the plugin running on older Jboss distros. @pschichtel Do you have anything against closing the issue? Is there anything you believe should be done in the repository before that happens? |
Docker images are on quay.io only I think. 17, 18 and 19 were released with both the quarkus and the jboss/wildfly distribution. I'm on my way towards version 20 on quarkus (this version is only a few weeks old and the first not to include the legacy distro). I mean I can keep patching the version I install in my keycloak while migrating towards 20, but I guess you should at least add a note to the README, that since version 17 only quarkus is supported. |
That's a great idea! I've added a note about compatibility with JBoss distributions to the README.md, linking to this issue as a workaround. Do you think this will be informative enough? |
seems fine to me, yes |
while upgrading I noticed the version for keycloak 19.x doesn't work on legacy (didn't find some class, forgot which one). I avoided the issue by going from 18-legacy straight to 20, so just an fyi. |
I built the plugin locally with
mvn clean package
and deployed the resulting jar to my keycloak (17.0.1 jboss distribution).Using it results in:
Inspecting the jar shows that these classes are not bundled and apparently are not provided by keycloak. (maybe missing a module.xml ?).
I temporarily added the maven-shade-plugin to bundle the missing (non-provided) dependencies with the plugin:
The text was updated successfully, but these errors were encountered: