java.lang.NoClassDefFoundError

com/google/gson/Gson

Samebug tips6

jsp-api and servlet-api jars must NOT be deployed by your web app. They should be marked as provided but not deployed by your app.

The server rejects all jars that already belong to the server runtime (such as tomcat-.jar, servlet.jar). Consider substituting the CORS filter you're using for this one: https://goo.gl/ctQ7Fs

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web8598

  • via GitHub by Rauno56
    , 1 year ago
    com/google/gson/Gson
  • via GitHub by harrisonhazza
    , 1 year ago
    com/google/gson/Gson
  • via ichun.us by Unknown author, 1 year ago
    com/google/gson/Gson
  • Stack trace

    • java.lang.NoClassDefFoundError: com/google/gson/Gson at com.earth2me.essentials.commands.Commandcreatekit.<clinit>(Commandcreatekit.java:42)[EssentialsX-2.0.1.jar:?] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[?:1.8.0_91] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)[?:1.8.0_91] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[?:1.8.0_91] at java.lang.reflect.Constructor.newInstance(Constructor.java:423)[?:1.8.0_91] at java.lang.Class.newInstance(Class.java:442)[?:1.8.0_91] at com.earth2me.essentials.Essentials.onCommandEssentials(Essentials.java:434)[EssentialsX-2.0.1.jar:?] at com.earth2me.essentials.Essentials.onCommand(Essentials.java:374)[EssentialsX-2.0.1.jar:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)[spigot-1.8.jar:git-Spigot-c3c767f-33d5de3] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)[spigot-1.8.jar:git-Spigot-c3c767f-33d5de3] at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchCommand(CraftServer.java:646)[spigot-1.8.jar:git-Spigot-c3c767f-33d5de3] at net.minecraft.server.v1_8_R1.PlayerConnection.handleCommand(PlayerConnection.java:1115)[spigot-1.8.jar:git-Spigot-c3c767f-33d5de3] at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:950)[spigot-1.8.jar:git-Spigot-c3c767f-33d5de3] at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(PacketPlayInChat.java:26)[spigot-1.8.jar:git-Spigot-c3c767f-33d5de3] at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(PacketPlayInChat.java:53)[spigot-1.8.jar:git-Spigot-c3c767f-33d5de3] at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13)[spigot-1.8.jar:git-Spigot-c3c767f-33d5de3] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[?:1.8.0_91] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[?:1.8.0_91] at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:696)[spigot-1.8.jar:git-Spigot-c3c767f-33d5de3] at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316)[spigot-1.8.jar:git-Spigot-c3c767f-33d5de3] at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:634)[spigot-1.8.jar:git-Spigot-c3c767f-33d5de3] at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:537)[spigot-1.8.jar:git-Spigot-c3c767f-33d5de3] at java.lang.Thread.run(Thread.java:745)[?:1.8.0_91] Caused by: java.lang.ClassNotFoundException: com.google.gson.Gson at java.net.URLClassLoader.findClass(URLClassLoader.java:381)[?:1.8.0_91] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101)[spigot-1.8.jar:git-Spigot-c3c767f-33d5de3] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86)[spigot-1.8.jar:git-Spigot-c3c767f-33d5de3] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)[?:1.8.0_91] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[?:1.8.0_91] ... 23 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 3 months ago
    Unknown user
    Once, 9 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    1543 more bugmates