lucko / helper

A collection of utilities and extended APIs to support the rapid and easy development of Bukkit plugins.
MIT License
456 stars 87 forks source link

helper-redis NoClassDefFoundError: org/slf4j/LoggerFactory #138

Open joeleoli opened 2 years ago

joeleoli commented 2 years ago

so, I put helper & helper-redis on my server, but helper-redis can't connect to redis because the class org/slf4j/LoggerFactory can't be found which is used by jedis, I have put the same plugins on another server which have a few other plugins and I somehow don't get this issue on there.

[10:58:16 ERROR]: Error occurred while enabling helper-redis v1.2.1 (Is it up to date?)
java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
        at redis.clients.jedis.JedisPool.<clinit>(JedisPool.java:17) ~[?:?]
        at me.lucko.helper.redis.plugin.HelperRedis.<init>(HelperRedis.java:70) ~[?:?]
        at me.lucko.helper.redis.plugin.HelperRedisPlugin.getRedis(HelperRedisPlugin.java:64) ~[?:?]
        at me.lucko.helper.redis.plugin.HelperRedisPlugin.enable(HelperRedisPlugin.java:45) ~[?:?]
        at me.lucko.helper.plugin.ExtendedJavaPlugin.onEnable(ExtendedJavaPlugin.java:100) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[patched_1.8.8.jar:git-PaperSpigot-445]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:332) [patched_1.8.8.jar:git-PaperSpigot-445]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:407) [patched_1.8.8.jar:git-PaperSpigot-445]
        at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:359) [patched_1.8.8.jar:git-PaperSpigot-445]
        at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:318) [patched_1.8.8.jar:git-PaperSpigot-445]
        at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:203) [patched_1.8.8.jar:git-PaperSpigot-445]
        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:563) [patched_1.8.8.jar:git-PaperSpigot-445]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_312]
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
        at java.net.URLClassLoader.findClass(URLClassLoader.java:387) ~[?:1.8.0_312]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:102) ~[patched_1.8.8.jar:git-PaperSpigot-445]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:87) ~[patched_1.8.8.jar:git-PaperSpigot-445]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_312]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_312]
        ... 13 more
[10:58:16 INFO]: [helper-redis] Disabling helper-redis v1.2.1