opensingular / singular-keycloak-database-federation

Keycloak User Storage SPI for Relational Databases (Keycloak User Federation, supports postgresql, mysql, oracle and mysql)
Apache License 2.0
120 stars 57 forks source link

Copy JAR files and run start-dev but fails - Keycloak Latest #51

Open Phoxxphire2309 opened 8 months ago

Phoxxphire2309 commented 8 months ago

Hi

Im following the readme as im trying to build a POC using an RDS relational database and following the steps in readme copying into /providers and then running the start-dev command I get the below error

bash-5.1$ ./bin/kc.sh start-dev Updating the configuration and installing your custom providers, if any. Please wait. 2024-03-13 17:17:22,438 INFO [io.qua.dep.QuarkusAugmentor] (main) Quarkus augmentation completed in 8813ms Unexpected problem occured during version sanity check Reported exception: java.lang.AbstractMethodError: Receiver class org.slf4j.impl.JBossSlf4jServiceProvider does not define or inherit an implementation of the resolved method 'abstract java.lang.String getRequesteApiVersion()' of interface org.slf4j.spi.SLF4JServiceProvider. at org.slf4j.LoggerFactory.versionSanityCheck(LoggerFactory.java:294) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:141) at org.slf4j.LoggerFactory.getProvider(LoggerFactory.java:418) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:404) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:353) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:379) at org.jgroups.logging.Slf4jLogImpl.(Slf4jLogImpl.java:33) at org.jgroups.logging.LogFactory.getLog(LogFactory.java:71) at org.jgroups.conf.XmlConfigurator.(XmlConfigurator.java:25) at org.infinispan.remoting.transport.jgroups.FileJGroupsChannelConfigurator.(FileJGroupsChannelConfigurator.java:28) at org.infinispan.remoting.transport.jgroups.BuiltinJGroupsChannelConfigurator.(BuiltinJGroupsChannelConfigurator.java:52) at org.infinispan.remoting.transport.jgroups.BuiltinJGroupsChannelConfigurator.loadBuiltIn(BuiltinJGroupsChannelConfigurator.java:45) at org.infinispan.remoting.transport.jgroups.BuiltinJGroupsChannelConfigurator.TCP(BuiltinJGroupsChannelConfigurator.java:20) at org.infinispan.configuration.parsing.Parser.addJGroupsDefaultStacksIfNeeded(Parser.java:1379) at org.infinispan.configuration.parsing.Parser.readElement(Parser.java:82) at org.infinispan.configuration.parsing.ParserRegistry.parseElement(ParserRegistry.java:212) at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:195) at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:181) at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:164) at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:138) at org.keycloak.quarkus.runtime.storage.legacy.infinispan.CacheManagerFactory.startCacheManager(CacheManagerFactory.java:103) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840) 2024-03-13 17:17:24,430 WARN [org.infinispan.CONFIG] (keycloak-cache-init) ISPN000569: Unable to persist Infinispan internal caches as no global state enabled 2024-03-13 17:17:24,560 INFO [org.infinispan.CONTAINER] (keycloak-cache-init) ISPN000556: Starting user marshaller 'org.infinispan.jboss.marshalling.core.JBossUserMarshaller' 2024-03-13 17:17:24,696 INFO [org.keycloak.quarkus.runtime.hostname.DefaultHostnameProvider] (main) Hostname settings: Base URL: , Hostname: , Strict HTTPS: false, Path: , Strict BackChannel: false, Admin URL: , Admin: , Port: -1, Proxied: false 2024-03-13 17:17:26,864 WARN [io.quarkus.agroal.runtime.DataSources] (JPA Startup Thread) Datasource enables XA but transaction recovery is not enabled. Please enable transaction recovery by setting quarkus.transaction-manager.enable-recovery=true, otherwise data may be lost if the application is terminated abruptly 2024-03-13 17:17:27,803 INFO [org.keycloak.connections.infinispan.DefaultInfinispanConnectionProviderFactory] (main) Node name: node_91977, Site name: null 2024-03-13 17:17:27,808 INFO [org.keycloak.broker.provider.AbstractIdentityProviderMapper] (main) Registering class org.keycloak.broker.provider.mappersync.ConfigSyncEventListener 2024-03-13 17:17:29,237 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Failed to start server in (development) mode 2024-03-13 17:17:29,237 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Unable to start HTTP server 2024-03-13 17:17:29,237 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: io.quarkus.runtime.QuarkusBindException: Port(s) already bound: 8080: Address already in use 2024-03-13 17:17:29,237 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Port(s) already bound: 8080: Address already in use 2024-03-13 17:17:29,237 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) For more details run the same command passing the '--verbose' option. Also you can use '--help' to see the details about the usage of the particular command.

Can someone help in this error please?

WaleedSaleh commented 3 months ago

hello @Phoxxphire2309 ,

i fixed the issue by deleting the slf4j-api-2.0.0-alpha1.jar and adding this slf4j-api-2.0.15.jar instead.