java.lang.NoClassDefFoundError

org/apache/commons/logging/LogFactory

Samebug tips8

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

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

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

Solutions on the web19349

  • via Coderanch by anandram venkataswamy, 7 months ago
    org/apache/commons/logging/LogFactory
  • via Coderanch by murali vijaya, 7 months ago
    org/apache/commons/logging/LogFactory
  • org/apache/commons/logging/LogFactory
  • Stack trace

    • java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at enaq.gui.main.ENAQ.<clinit>(ENAQ.java:27) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at enaq.gui.main.SplashStarter.main(SplashStarter.java:48) Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ... 4 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, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    1195 more bugmates