java.lang.NoClassDefFoundError

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

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

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.

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.

  • JavaFX2 wrapping launch4j as maven plugin
    via Stack Overflow by worcin
    ,
  • Exception in init method - JavaFX
    via Stack Overflow by Eric
    ,
  • The issue noticed when testing the internal JavaFX Ensemble applet staging at: http://oklahoma.us.oracle.com/www/tests/ngthomas/otndemo/demo.html Ensemble applet loaded with java.lang.StackOverflowError against jre 8-b122 promotion (OK with 7u51) Also, the problem is not seen with the sample Ensemble apple under JavaFX 8 ws *** Tested Configuration: - x86 Win , IE 9, FF - x86 Vista/ GC *** Steps to reproduce: 1) Install jre 8-b122 promotion 2) Use any browser to load the test Ensemble applet http://download.oracle.com/otndocs/products/javafx/2/samples/Ensemble/index.html If you see the following java.lang.StackOverflowError error, the issue is reproducible ---- FetchDocListTask docsUrl = http://download.oracle.com/javafx/2/api/ Jan 05, 2014 12:26:37 PM javafx.scene.control.Control loadSkinClass SEVERE: Failed to load skin 'com.sun.javafx.scene.control.skin.ButtonSkin' for control Button@1682d7[styleClass=sample-tile]'Key Stroke Motion' java.lang.StackOverflowError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at java.util.ResourceBundle$Control.newBundle(Unknown Source) at java.util.ResourceBundle.loadBundle(Unknown Source) at java.util.ResourceBundle.findBundle(Unknown Source) at java.util.ResourceBundle.findBundle(Unknown Source) at java.util.ResourceBundle.findBundle(Unknown Source) at java.util.ResourceBundle.getBundleImpl(Unknown Source) at java.util.ResourceBundle.getBundle(Unknown Source) at sun.util.resources.LocaleData$1.run(Unknown Source) at sun.util.resources.LocaleData$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.util.resources.LocaleData.getBundle(Unknown Source) at sun.util.resources.LocaleData.getDateFormatData(Unknown Source) at java.text.DateFormatSymbols.initializeData(Unknown Source) at java.text.DateFormatSymbols.<init>(Unknown Source) at sun.util.locale.provider.DateFormatSymbolsProviderImpl.getInstance(Unknown Source) at java.text.DateFormatSymbols.getProviderInstance(Unknown Source) at java.text.DateFormatSymbols.getInstance(Unknown Source) at java.util.Formatter$FormatSpecifier.print(Unknown Source) at java.util.Formatter$FormatSpecifier.print(Unknown Source) at java.util.Formatter$FormatSpecifier.printDateTime(Unknown Source) at java.util.Formatter$FormatSpecifier.print(Unknown Source) at java.util.Formatter.format(Unknown Source) at java.util.Formatter.format(Unknown Source) at java.lang.String.format(Unknown Source) at sun.util.logging.PlatformLogger$DefaultLoggerProxy.format(Unknown Source) at sun.util.logging.PlatformLogger$DefaultLoggerProxy.doLog(Unknown Source) ..... ......
    via by Hung Nguyen,
    • java.lang.NoClassDefFoundError: javafx/application/Application at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source) Caused by: java.lang.ClassNotFoundException: javafx.application.Application at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 13 more

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