java.lang.NoClassDefFoundError

com/cfg/ObjectRepositoryFactory java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

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 web8151

  • via Stack Overflow by eeijlar
    , 10 months ago
    com/cfg/ObjectRepositoryFactory java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
  • via Google Groups by Unknown author, 1 month ago
    > org/codehaus/groovy/runtime/typehandling/ShortTypeHandling > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
  • via Google Groups by Charles Moulliard, 1 year ago
    com/example/pojo/User at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:85) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
  • Stack trace

    • java.lang.NoClassDefFoundError: com/cfg/ObjectRepositoryFactory java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ClassNotFoundException: com.cfg.ObjectRepositoryFactory 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) ... 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, 11 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 week ago
    4 times, 1 month ago
    Once, 1 month ago
    1191 more bugmates