java.lang.NoClassDefFoundError

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

You might've forgot to add a dependency or it's written wrong. Also, you might be using incompatible versions of Java and Hibernate. More on this here: https://goo.gl/SjSlRA

tip

This error means there's a class missing in your classpath during runtime. You need to create a jar with all your dependencies and have it in your classpath. Check Maven Assembly Plugin and how to add your dependencies to a jar: https://goo.gl/U2zr8k

tip

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.

tip

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

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

  • startup tomcat using ant in eclipse
    via Stack Overflow by Yongxin Ren
    ,
  • Weird [Morphia] Java Error
    via Stack Overflow by user2752843
    ,
  • GitHub comment 301#72890003
    via GitHub by rdblue
    ,
  • GitHub comment 6#203161892
    via GitHub by haichuand
    ,
  • MyDeployingVerticle start some error
    via by 振亚张,
  • PlaySlickFAQ
    via by Unknown author,
  • Tomcat Server Error
    via Stack Overflow by Himanshu Yadav
    ,
  • Ceylon command line on windows
    via Stack Overflow by Klaus Rohe
    ,
    • java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:52) Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:372) at java.net.URLClassLoader$1.run(URLClassLoader.java:361)

    Users with the same issue

    BuggerBugger
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    1189 more bugmates