java.lang.NoClassDefFoundError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Resource Bundle Error
    via by landon manning,
  • The Xalan implementation of org.apache.xalan.xslt.EnvironmentCheck.checkEnvironment leads to unexpected exception when there is an ant present that do not implement the AntMain method anymore (which is the case with the ant embedded in various tomcat 4 versions). One workaround is to remove the ant.jar file in the lib directory of tomcat, but then tomcat fails to compile JSP files. A better solution would be to adapt the ant check of xalan in order to make sure that no exception is launched if the version of ant does not support the org/apache/tools/ant/launch/AntMain (it is btw a pity that the backward compatibility of that AntMain was broken by ant.jar) java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/AntMain at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:621) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:958) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:941) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1429) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1289) at org.apache.xalan.xslt.EnvironmentCheck.classForName(EnvironmentCheck.java:1202) at org.apache.xalan.xslt.EnvironmentCheck.checkAntVersion(EnvironmentCheck.java:1016) at org.apache.xalan.xslt.EnvironmentCheck.getEnvironmentHash(EnvironmentCheck.java:268) at org.apache.xalan.xslt.EnvironmentCheck.checkEnvironment(EnvironmentCheck.java:211)
    via by Philippe Vijghen,
  • Java JAX-RPC client to C# web service
    via Stack Overflow by vico
    ,
    • java.lang.NoClassDefFoundError: com/symantec/scanengine/scanengine (wrong name: com/symantec/scanengine/ScanEngine) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:448) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:101) at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) at java.net.URLClassLoader.access$1(URLClassLoader.java:216) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:191) at java.lang.ClassLoader.loadClass(ClassLoader.java:296) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:283) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.util.ResourceBundle.findBundle(ResourceBundle.java:578) at java.util.ResourceBundle.getBundle(ResourceBundle.java:421) at java.util.ResourceBundle.getBundle(ResourceBundle.java:339) at com.symantec.scanengine.VScanTask.<clinit>(VScanTask.java:24) at HostTest.startHostTest(HostTest.java:85) at HostTest.main(HostTest.java:184) at symantec.tools.debug.Agent.runMain(Native Method) at symantec.tools.debug.MainThread.run(Agent.java:48)

    Users with the same issue

    rp
    1 times, last one,
    Unknown visitor1 times, last one,