Repository navigation
Replies: 1 comment
|
This looks like a classloading conflict where jakarta.ws.rs.client.ClientBuilder is defined in two different jars that are being loaded by different classloaders. Make sure that any dependency available in a parent class is not in a nested jar or shade the nested jar. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Dear all,
When i started springboot app with Keycloak admin client sdk 26.0.5, it failed with below exception.
java.lang.ClassCastException: class org.jboss.resteasy.client.jaxrs.internal.ResteasyClientBuilderImpl cannot be cast to class jakarta.ws.rs.client.ClientBuilder (org.jboss.resteasy.client.jaxrs.internal.ResteasyClientBuilderImpl and jakarta.ws.rs.client.ClientBuilder are in unnamed module of loader ‘app’
And i checked the source code and found that:ResteasyClientBuilderImpl class extends javax.ws.rs.client.ClientBuilder,but ClientBuilderWrapper convert the instance of ResteasyClientBuilderImpl into jakarta.ws.rs.client.ClientBuilder,how can it works, can anyone help? Thanks in advance!!


Guo Rui
All reactions