`
Caused by: io.quarkus.runtime.configuration.ConfigurationException: Unable to properly register the hierarchy of the following JPA classes as they are not in the Jandex index:
org.keycloak.quickstart.storage.user.UserEntity
Consider adding them to the index either by creating a Jandex index for your dependency via the Maven plugin, an empty META-INF/beans.xml or quarkus.index-dependency properties.
at io.quarkus.hibernate.orm.deployment.JpaJandexScavenger.discoverModelAndRegisterForReflection(JpaJandexScavenger.java:134)
at io.quarkus.hibernate.orm.deployment.HibernateOrmProcessor.defineJpaEntities(HibernateOrmProcessor.java:409)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:849)
at io.quarkus.builder.BuildContext.run(BuildContext.java:256)
at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2513)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1538)
at java.base/java.lang.Thread.run(Thread.java:833)
at org.jboss.threads.JBossThread.run(JBossThread.java:501)
`
Describe the bug
I want to create custom User federation, for that I have used similar approach of creating SPI (https://github.com/keycloak/keycloak-quickstarts/tree/latest/extension/user-storage-jpa) but using MYSQL. And adding the jar file into the "provider" folder in the server. But by doing so it is giving me error :
` Caused by: io.quarkus.runtime.configuration.ConfigurationException: Unable to properly register the hierarchy of the following JPA classes as they are not in the Jandex index:
Tech Stack :
Java - 17 Keycloak - 24.0.1 Mysql - 8
Version
24.0.1
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Anything else?
No response