By: Alexandre Zia Account Admin 06 May 2020 at 8:45 a.m. CDT

4 Responses
Alexandre Zia gravatar
Hello, I was trying to make Oxd use REDIS, following instructions on this page: https://gluu.org/docs/oxd/configuration/redis/#redis-in-cluster-mode However seems like it's pom.xml file is using an old version of jedis 2.x that doesn't have setLocalhost method. But oxd is calling setLocalhost metohd, so it crashes on start jedis only have setLocalhost method in 3.x ``` ERROR [10:35:00.592] [main] o.g.o.s.ServerLauncher - Failed to start oxd server. java.lang.NoSuchMethodError: redis.clients.jedis.HostAndPort.setLocalhost(Ljava/lang/String;)V at org.gluu.service.cache.AbstractRedisProvider.<init>(AbstractRedisProvider.java:14) at org.gluu.service.cache.RedisStandaloneProvider.<init>(RedisStandaloneProvider.java:33) at org.gluu.service.cache.RedisProviderFactory.create(RedisProviderFactory.java:36) at org.gluu.oxd.server.persistence.RedisPersistenceService.create(RedisPersistenceService.java:39) at org.gluu.oxd.server.persistence.PersistenceServiceImpl.create(PersistenceServiceImpl.java:27) at org.gluu.oxd.server.ServerLauncher.configureServices(ServerLauncher.java:48) at org.gluu.oxd.server.OxdServerApplication.run(OxdServerApplication.java:34) at org.gluu.oxd.server.OxdServerApplication.run(OxdServerApplication.java:13) at io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:43) at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:87) at io.dropwizard.cli.Cli.run(Cli.java:78) at io.dropwizard.Application.run(Application.java:93) at org.gluu.oxd.server.OxdServerApplication.main(OxdServerApplication.java:19) ``` I even tried to compile oxd from sources but seems like there are problems too: ``` [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ oxd-server --- [INFO] Compiling 70 source files to /Volumes/4THD/backup/workspace/oxd/oxd-server/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /Volumes/4THD/backup/workspace/oxd/oxd-server/src/main/java/org/gluu/oxd/server/service/DiscoveryService.java:[115,94] error: incompatible types: ClientExecutor cannot be converted to ClientHttpEngine [ERROR] /Volumes/4THD/backup/workspace/oxd/oxd-server/src/main/java/org/gluu/oxd/server/op/RsProtectOperation.java:[162,148] error: incompatible types: ClientExecutor cannot be converted to ClientHttpEngine [INFO] 2 errors [INFO] ------------------------------------------------------------- ``` Tried to look for an updated oxd-sever as well in: https://ox.gluu.org/maven/org/gluu/oxd-server/ Is there a way to make oxd use redis? An updated oxd-server.jar perhaps? thanks in advance

By Arnab Dutta staff 06 May 2020 at 1:16 p.m. CDT

Arnab Dutta gravatar
Hi Alexandre, Yes you are right. The old version of jedis 2.x is the reason of the error. I have correct this in `oxd 4.2`. The latest built is available at below link. You may please check it out. I will update once it is corrected in `oxd 4.1` branch. https://ox.gluu.org/maven/org/gluu/oxd-server/4.2.0-SNAPSHOT/ The master branch of oxd is compiling without error. https://github.com/GluuFederation/oxd Let us know if you face any issue. Regards, Arnab

By Alexandre Zia Account Admin 06 May 2020 at 6:35 p.m. CDT

Alexandre Zia gravatar
Hi, 4.2 is working fine. Thanks !

By Arnab Dutta staff 07 May 2020 at 5:58 a.m. CDT

Arnab Dutta gravatar
Hi Alexandre, The latest built of oxd 4.1.1 with the fix is available at below link. You can rename `oxd-server-4.1.1.Final.jar` to `oxd-server.jar` and replace it in you oxd setup. https://ox.gluu.org/maven/org/gluu/oxd-server/4.1.1.Final/ Regards, Arnab

By Alexandre Zia Account Admin 07 May 2020 at 10:07 a.m. CDT

Alexandre Zia gravatar
OK thanks