KeyCloak.x config QuarkusClassLoader error

Hello all, I am trying to add a user storage provider JAR file to a KeyCloak.x instance. I am getting the following error when running ./ config:

ERROR: Build failure: Build failed due to errors
	[error]: Build step io.quarkus.hibernate.orm.deployment.HibernateOrmProcessor#build threw an exception: java.lang.LinkageError: loader constraint violation: loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @2eae8e6e wants to load interface org.hibernate.boot.archive.scan.spi.Scanner. A different interface with the same name was previously loaded by @954b04f. (org.hibernate.boot.archive.scan.spi.Scanner is in unnamed module of loader @954b04f, parent loader 'app')

Attempts made to resolve this:

  • Added the following to
  • Verified that the user storage SPI and keycloak.x were using the same version of org.hibernate:hibernate-core. Version in use is 5.1.29.Final.

Is there something Iā€™m missing here?

1 Like

hi, i have faced same problem, i solved by making customized SPI jar maven hibernate-core dependency to provided scope, i.e


i am using keycloak.X 17.0.1