java.lang.NoClassDefFoundError

org/apache/commons/lang3/builder/HashCodeBuilder

Samebug tips8

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.

If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.

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

Solutions on the web19277

  • via Google Groups by Ignacio Baca Moreno-Torres, 6 months ago
    org/apache/commons/lang3/builder/HashCodeBuilder
  • via Google Groups by Ignacio Baca Moreno-Torres, 6 months ago
    org/apache/commons/lang3/builder/HashCodeBuilder
  • org/apache/commons/lang/builder/HashCodeBuilder
  • Stack trace

    • java.lang.NoClassDefFoundError: org/apache/commons/lang3/builder/HashCodeBuilder at com.gargoylesoftware.htmlunit.BrowserVersion.hashCode(BrowserVersion.java:731)[INFO] at java.util.HashMap.hash(HashMap.java:338)[INFO] at java.util.HashMap.put(HashMap.java:611)[INFO] at com.google.gwt.junit.RunStyleHtmlUnit.addBrowser(RunStyleHtmlUnit.java:211)[INFO] at com.google.gwt.junit.RunStyleHtmlUnit.<clinit>(RunStyleHtmlUnit.java:202)[INFO] at java.lang.Class.forName0(Native Method)[INFO] at java.lang.Class.forName(Class.java:264)[INFO] at com.google.gwt.junit.JUnitShell.createRunStyle(JUnitShell.java:1179)[INFO] at com.google.gwt.junit.JUnitShell.doStartup(JUnitShell.java:940)[INFO] at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:913)[INFO] at com.google.gwt.junit.JUnitShell.getUnitTestShell(JUnitShell.java:696)[INFO] at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:670)[INFO] at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:421)[INFO] at junit.framework.TestCase.runBare(TestCase.java:134)[INFO] at junit.framework.TestResult$1.protect(TestResult.java:110)[INFO] at junit.framework.TestResult.runProtected(TestResult.java:128)[INFO] at junit.framework.TestResult.run(TestResult.java:113)[INFO] at junit.framework.TestCase.run(TestCase.java:124)[INFO] at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:247)[INFO] at junit.framework.TestSuite.runTest(TestSuite.java:232)[INFO] at junit.framework.TestSuite.run(TestSuite.java:227)[INFO] at junit.framework.TestSuite.runTest(TestSuite.java:232)[INFO] at junit.framework.TestSuite.run(TestSuite.java:227)[INFO] at junit.framework.TestSuite.runTest(TestSuite.java:232)[INFO] at junit.framework.TestSuite.run(TestSuite.java:227)[INFO] at org.codehaus.mojo.gwt.test.MavenTestRunner.doRun(MavenTestRunner.java:105)[INFO] at junit.textui.TestRunner.start(TestRunner.java:180)[INFO] at org.codehaus.mojo.gwt.test.MavenTestRunner.main(MavenTestRunner.java:63)[INFO] Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang3.builder.HashCodeBuilder at java.net.URLClassLoader.findClass(URLClassLoader.java:381)[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)[INFO] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[INFO] ... 28 more Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang3.builder.HashCodeBuilder ... 32 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

    4 times, 1 day ago
    4 times, 1 day ago
    Unknown user
    Once, 1 week ago
    Once, 2 weeks ago
    Unknown user
    2 times, 2 weeks ago
    2430 more bugmates