Keycloak X - java.lang.ClassNotFoundException
See original GitHub issueI tested in Keycloak 16.1 and 15.1, with the X distribution:
keycloak_1 | 2021-12-30 13:03:08,821 WARN [org.key.services] (executor-thread-66) KC-SERVICES0013: Failed authentication: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.glassfish.jersey.client.JerseyClientBuilder
keycloak_1 | at javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:102)
keycloak_1 | at javax.ws.rs.client.ClientBuilder.newClient(ClientBuilder.java:113)
keycloak_1 | at com.danielfrak.code.keycloak.providers.rest.LegacyProviderFactory.create(LegacyProviderFactory.java:25)
keycloak_1 | at com.danielfrak.code.keycloak.providers.rest.LegacyProviderFactory.create(LegacyProviderFactory.java:15)
keycloak_1 | at org.keycloak.storage.AbstractStorageManager.getStorageProviderInstance(AbstractStorageManager.java:229)
keycloak_1 | at org.keycloak.storage.AbstractStorageManager.lambda$getEnabledStorageProviders$0(AbstractStorageManager.java:98)
keycloak_1 | at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
keycloak_1 | at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:400)
keycloak_1 | at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258)
........
.....
keycloak_1 | Caused by: java.lang.ClassNotFoundException: org.glassfish.jersey.client.JerseyClientBuilder
keycloak_1 | ... 77 more
keycloak_1 |
keycloak_1 | 2021-12-30 13:03:08,829 WARN [org.key.events] (executor-thread-66) type=LOGIN_ERROR, realmId=local, clientId=zzz-web, userId=null, ipAddress=172.28.0.1, error=invalid_user_credentials, auth_method=openid-connect, auth_type=code, redirect_uri=https://zzz.kc.l/, code_id=bde1ebeb-b2ab-4b2a-9c1a-cc201128f2f1, username=zzzzzz, authSessionParentId=bde1ebeb-b2ab-4b2a-9c1a-cc201128f2f1, authSessionTabId=uQEeyvaPdhM
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:6 (5 by maintainers)
Top Results From Across the Web
jboss - error due to the following reason(s): java.lang ...
Keycloak consists of a server (Keycloak server) and an adapter that protects your application and handles authentication. If you are deploying your own ......
Read more >Keycloak 17 User Storage SPI failure · Issue #10555 - GitHub
My custom user storage SPI .jar works well on Keycloak 16 but fails after ... SCIMUserStorageProviderFactory] (executor-thread-0) java.lang.
Read more >[keycloak-user] java.lang.ClassNotFoundException when ...
[keycloak-user] java.lang.ClassNotFoundException when running Keycloak with an spi that is using Akka.
Read more >org.jgroups.protocols.kubernetes.KUBE_PING - Keycloak
I downloaded the latest jgroups-kubernetes jar file from this website Maven Central Repository Search and placed it in in lib/lib/main ...
Read more >Keycloak 20.0.0 released
We are happy to announce that the new Keycloak Operator for the Quarkus based distribution is no longer a preview feature.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Since PR #52 has been merged, the bug should be fixed and so I’m closing this issue.
Let me know if any problems persist and I’ll reopen the issue.
@rfeijolo normally I would be against creating new dependencies when we can technically use existing ones but from the thread you linked to it seems that the Keycloak devs themselves are suggesting this…
There seem to be problems with the RestEasy version every time the Keycloak version gets bumped, as well, so this could kill two birds with one stone.
I would be grateful if you could send the Pull Request 😃