java.lang.NoClassDefFoundError

org/apache/log4j/Level

Samebug tips9

Check if you didn't forget to instantiate your topic in the kafka broker.

A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.

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

Solutions on the web19139

  • via Coderanch by Rodine Villar, 7 months ago
    org/apache/log4j/Level
  • via GitHub by scgm11
    , 1 year ago
    org/apache/log4j/Level
  • via felix-users by GERODOLLE Anne RD-MAPS-GRE, 1 year ago
    org/apache/log4j/Level
  • Stack trace

    • java.lang.NoClassDefFoundError: org/apache/log4j/Level at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:108) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:279) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:252) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:265) at org.apache.phoenix.jdbc.PhoenixDriver.<clinit>(PhoenixDriver.java:52) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:190) at HelloWorld.main(HelloWorld.java:16) Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Level at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 9 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 weeks ago
    Unknown user
    Once, 3 weeks ago
    Unknown user
    Once, 3 weeks ago
    Unknown user
    Once, 3 weeks ago
    Unknown user
    Once, 3 weeks ago
    2376 more bugmates