java.lang.NoClassDefFoundError

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.

  • Hbase Map Reduce Example | Sujee Maniyam
    via by Unknown author,
  • HudsonTestCase is no longer functioning for me. All tests fail with: {noformat} java.lang.NoClassDefFoundError: org/codehaus/plexus/embed/Embedder at hudson.maven.MavenEmbedder.start(MavenEmbedder.java:658) at org.jvnet.hudson.test.HudsonTestCase$3.decorateHome(HudsonTestCase.java:739) at org.jvnet.hudson.test.HudsonTestCase.newHudson(HudsonTestCase.java:276) at org.jvnet.hudson.test.HudsonTestCase.setUp(HudsonTestCase.java:201) at hudson.plugins.buggame.goals.BuildGoalTest.setUp(BuildGoalTest.java:37) at junit.framework.TestCase.runBare(TestCase.java:132) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997) Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.embed.Embedder 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:319) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:330) at java.lang.ClassLoader.loadClass(ClassLoader.java:254) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:399) ... 23 more {noformat} This seems to have occurred this week. Deleting plexus JARs from the Maven Repo has no effect. There's a dependency missing here. I believe that it's in plexus-utils, but adding my own plexus-utils dependency ends up with the bug reported to the mailing list <http://osdir.com/ml/java.hudson.devel/2008-06/msg00226.html>. This is a blocker for me to continue development of any of my Hudson plugins.
    via by Lewisham,
  • Repast / Mailing Lists
    via by Unknown author,
  • HudsonTestCase is no longer functioning for me. All tests fail with: {noformat} java.lang.NoClassDefFoundError: org/codehaus/plexus/embed/Embedder at hudson.maven.MavenEmbedder.start(MavenEmbedder.java:658) at org.jvnet.hudson.test.HudsonTestCase$3.decorateHome(HudsonTestCase.java:739) at org.jvnet.hudson.test.HudsonTestCase.newHudson(HudsonTestCase.java:276) at org.jvnet.hudson.test.HudsonTestCase.setUp(HudsonTestCase.java:201) at hudson.plugins.buggame.goals.BuildGoalTest.setUp(BuildGoalTest.java:37) at junit.framework.TestCase.runBare(TestCase.java:132) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997) Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.embed.Embedder 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:319) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:330) at java.lang.ClassLoader.loadClass(ClassLoader.java:254) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:399) ... 23 more {noformat} This seems to have occurred this week. Deleting plexus JARs from the Maven Repo has no effect. There's a dependency missing here. I believe that it's in plexus-utils, but adding my own plexus-utils dependency ends up with the bug reported to the mailing list <http://osdir.com/ml/java.hudson.devel/2008-06/msg00226.html>. This is a blocker for me to continue development of any of my Hudson plugins.
    via by Lewisham,
  • Play Framework error during run command
    via Stack Overflow by Amit
    ,
  • Ant « WebLogic
    via by Unknown author,
  • org.jgrapht loading errors
    via by Brian Karlak,
    • java.lang.NoClassDefFoundError: com/jcraft/jogg/SyncState at org.tritonus.sampled.file.jorbis.JorbisAudioFileReader.getAudioFileFormat(JorbisAudioFileReader.java:71) at org.tritonus.share.sampled.file.TAudioFileReader.getAudioInputStream(TAudioFileReader.java:360) at org.tritonus.share.sampled.file.TAudioFileReader.getAudioInputStream(TAudioFileReader.java:239) at javax.sound.sampled.AudioSystem.getAudioInputStream(AudioSystem.java:1162) at krister.Ess.SPIWorkaround.getAudioInputStream(SPIWorkaround.java:47) at krister.Ess.AudioChannel.loadSound(AudioChannel.java:230) at krister.Ess.AudioChannel.<init>(AudioChannel.java:60) at HalfOctaveVUDemo.setup(HalfOctaveVUDemo.java:54) at processing.core.PApplet.handleDraw(PApplet.java:1402) at processing.core.PApplet.run(PApplet.java:1327) at java.lang.Thread.run(Thread.java:637) Caused by: java.lang.ClassNotFoundException: com.jcraft.jogg.SyncState 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:319) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:330) at java.lang.ClassLoader.loadClass(ClassLoader.java:254) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:399)

    Users with the same issue

    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,
    Unknown visitor
    Unknown visitor1 times, last one,
    1188 more bugmates