You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I adding two custom adapters (UserStorageProvider & IdentityProvider). I'm using resteasy(version 6.2.4.Final) rest clients to integrate with external rest services. I have added the jboss resteasy dependencies at compile scope. When I try to build the keycloak with kc.sh build I am getting following error:
ERROR: io.quarkus.builder.BuildException: Build failure: Build failed due to errors Oct 17 13:08:46 mba-t1-websso1 kc.sh: [error]: Build step io.quarkus.resteasy.deployment.ResteasyStandaloneBuildStep#staticInit threw an exception: java.lang.LinkageError: loader constraint violation: loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @54afd745 wants to load interface org.jboss.resteasy.spi.ResteasyDeployment. A different interface with the same name was previously loaded by java.net.URLClassLoader @f99f5e0. (org.jboss.resteasy.spi.ResteasyDeployment is in unnamed module of loader java.net.URLClassLoader @f99f5e0, parent loader 'app')
I have added the file named: jakarta.ws.rs.ext.Providers file under META-INF >services folder and it contains the ref of the class org.jboss.resteasy.plugins.providers.jackson.ResteasyJackson2Provider
Also I have two other files places under services folder for IdentityProviderFactor and UserStorageProviderFactory pointing to my custom providers.
I am building a fat/uber jar and placing it in the keycloak>providers folder to install my custom adapters. Please let me know what I'm missing. Thank you!
Version
22.0.4
Expected behavior
Custom adapters should be installed
Actual behavior
Running into issue:
ERROR: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
Oct 17 13:08:46 mba-t1-websso1 kc.sh: [error]: Build step io.quarkus.resteasy.deployment.ResteasyStandaloneBuildStep#staticInit threw an exception: java.lang.LinkageError: loader constraint violation: loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @54afd745 wants to load interface org.jboss.resteasy.spi.ResteasyDeployment. A different interface with the same name was previously loaded by java.net.URLClassLoader @f99f5e0. (org.jboss.resteasy.spi.ResteasyDeployment is in unnamed module of loader java.net.URLClassLoader @f99f5e0, parent loader 'app')
How to Reproduce?
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
I adding two custom adapters (UserStorageProvider & IdentityProvider). I'm using resteasy(version 6.2.4.Final) rest clients to integrate with external rest services. I have added the jboss resteasy dependencies at compile scope. When I try to build the keycloak with kc.sh build I am getting following error:
ERROR: io.quarkus.builder.BuildException: Build failure: Build failed due to errors Oct 17 13:08:46 mba-t1-websso1 kc.sh: [error]: Build step io.quarkus.resteasy.deployment.ResteasyStandaloneBuildStep#staticInit threw an exception: java.lang.LinkageError: loader constraint violation: loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @54afd745 wants to load interface org.jboss.resteasy.spi.ResteasyDeployment. A different interface with the same name was previously loaded by java.net.URLClassLoader @f99f5e0. (org.jboss.resteasy.spi.ResteasyDeployment is in unnamed module of loader java.net.URLClassLoader @f99f5e0, parent loader 'app')
I have added the file named: jakarta.ws.rs.ext.Providers file under META-INF >services folder and it contains the ref of the class
org.jboss.resteasy.plugins.providers.jackson.ResteasyJackson2Provider
Also I have two other files places under services folder for IdentityProviderFactor and UserStorageProviderFactory pointing to my custom providers.
My pom looks like:
`
4.0.0
I am building a fat/uber jar and placing it in the keycloak>providers folder to install my custom adapters. Please let me know what I'm missing. Thank you!
Version
22.0.4
Expected behavior
Custom adapters should be installed
Actual behavior
Running into issue:
ERROR: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
Oct 17 13:08:46 mba-t1-websso1 kc.sh: [error]: Build step io.quarkus.resteasy.deployment.ResteasyStandaloneBuildStep#staticInit threw an exception: java.lang.LinkageError: loader constraint violation: loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @54afd745 wants to load interface org.jboss.resteasy.spi.ResteasyDeployment. A different interface with the same name was previously loaded by java.net.URLClassLoader @f99f5e0. (org.jboss.resteasy.spi.ResteasyDeployment is in unnamed module of loader java.net.URLClassLoader @f99f5e0, parent loader 'app')
How to Reproduce?
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: