Having trouble with java.lang.NoClassDefFoundError: java.security.acl.Group

866 views
Skip to first unread message

Michail Panagoulias

unread,
Apr 3, 2020, 11:33:25 AM4/3/20
to Keycloak User
Hello,

I am new to Java Spring and Keycloak integration so i tried to run some examples i found on github.

I can't manage to make any one that i tried work, even the ones published by keycloak.

Some have repository errors and the most give me the error mentioned on the title.

I can get access tokens from keycloak just fine but when i try to use the token to access a url in
my Spring app maven reports error java.lang.NoClassDefFoundError: java.security.acl.Group
at keycloak-spring-security.

The one project that is pretty much easy to setup and try to replicate the issue is the following:

Please inform me on what information you need for my setup if needed.

Thank you very much in advance!

Dennis Griese

unread,
Apr 5, 2020, 8:27:44 PM4/5/20
to Keycloak User
The error comes with OpenJDK 14. The class in your error message was removed from the JDK
but is still referenced by the keycloak adapter.
https://issues.redhat.com/browse/KEYCLOAK-13690

Try to use Java 13 and it should work without any problems.

Michail Panagoulias

unread,
Apr 7, 2020, 12:12:42 PM4/7/20
to Keycloak User
Thank you very much for the heads up! That was it!
Reply all
Reply to author
Forward
0 new messages