java.lang.NoClassDefFoundError

tip

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.

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

Check if you didn't forget to instantiate your topic in the kafka broker.

tip

NoClassDefFoundError means java has failed to find a class you're trying to instantiate, look if you've added the class you're trying to instantiate to the dependencies.

tip

You need to add httpcore to your dependencies. Try adding version 4.3 or further.

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.

  • with a fresh checkout some minutes ago, i get a maven build error, when building the spring batch (parent) or infrastructure alone Building jar: C:\netbeans_projects\spring-batch\spring-batch-infrastructure\target\org.springframework.batch.infrastructure-2.0.0.CI-SNAPSHOT.jar [WARNING] Attempting to build MavenProject instance for Artifact (com.springsource.bundlor:com.springsource.bundlor.maven:1.0.0.BUILD-20090201.212350-20) of type: maven-plugin; constructing POM artifact instead. [com.springsource.bundlor.:transform {execution: bundlor-transform}] [FATAL ERROR] com.springsource.bundlor.maven.plugin.TransformBundlorMojo#execute() caused a linkage error (java.lang.NoClassDefFoundError) and may be out-of-date. Check the realms: [FATAL ERROR] Plugin realm = app0.child-container[com.springsource.bundlor:com.springsource.bundlor.maven] urls[0] = file:/C:/netbeans_maven_repo/com/springsource/bundlor/com.springsource.bundlor.maven/1.0.0.BUILD-SNAPSHOT/com.springsource.bundlor.maven-1.0.0.BUILD-SNAPSHOT.jar urls[1] = file:/C:/netbeans_maven_repo/org/springframework/org.springframework.core/2.5.6.A/org.springframework.core-2.5.6.A.jar urls[2] = file:/C:/netbeans_maven_repo/org/apache/commons/com.springsource.org.apache.commons.logging/1.1.1/com.springsource.org.apache.commons.logging-1.1.1.jar urls[3] = file:/C:/netbeans_maven_repo/com/springsource/bundlor/com.springsource.bundlor/1.0.0.BUILD-SNAPSHOT/com.springsource.bundlor-1.0.0.BUILD-SNAPSHOT.jar urls[4] = file:/C:/netbeans_maven_repo/com/springsource/util/com.springsource.util.osgi/1.5.0.BUILD-SNAPSHOT/com.springsource.util.osgi-1.5.0.BUILD-SNAPSHOT.jar urls[5] = file:/C:/netbeans_maven_repo/org/antlr/com.springsource.org.antlr/3.0.1/com.springsource.org.antlr-3.0.1.jar urls[6] = file:/C:/netbeans_maven_repo/org/eclipse/osgi/org.eclipse.osgi/3.4.0.v20080605-1900/org.eclipse.osgi-3.4.0.v20080605-1900.jar urls[7] = file:/C:/netbeans_maven_repo/com/springsource/util/com.springsource.util.common/1.5.0.BUILD-SNAPSHOT/com.springsource.util.common-1.5.0.BUILD-SNAPSHOT.jar urls[8] = file:/C:/netbeans_maven_repo/com/springsource/util/com.springsource.util.io/1.5.0.BUILD-SNAPSHOT/com.springsource.util.io-1.5.0.BUILD-SNAPSHOT.jar urls[9] = file:/C:/netbeans_maven_repo/org/objectweb/asm/com.springsource.org.objectweb.asm/3.1.0/com.springsource.org.objectweb.asm-3.1.0.jar urls[10] = file:/C:/netbeans_maven_repo/org/objectweb/asm/com.springsource.org.objectweb.asm.tree/3.1.0/com.springsource.org.objectweb.asm.tree-3.1.0.jar urls[11] = file:/C:/netbeans_maven_repo/org/objectweb/asm/com.springsource.org.objectweb.asm.commons/3.1.0/com.springsource.org.objectweb.asm.commons-3.1.0.jar urls[12] = file:/C:/netbeans_maven_repo/org/apache/commons/com.springsource.org.apache.commons.cli/1.1.0/com.springsource.org.apache.commons.cli-1.1.0.jar urls[13] = file:/C:/netbeans_maven_repo/org/slf4j/com.springsource.slf4j.nop/1.5.0/com.springsource.slf4j.nop-1.5.0.jar urls[14] = file:/C:/netbeans_maven_repo/org/slf4j/com.springsource.slf4j.api/1.5.0/com.springsource.slf4j.api-1.5.0.jar urls[15] = file:/C:/netbeans_maven_repo/org/springframework/ws/org.springframework.xml/1.5.2.A/org.springframework.xml-1.5.2.A.jar urls[16] = file:/C:/netbeans_maven_repo/org/apache/ws/com.springsource.org.apache.ws.commons.schema/1.3.2/com.springsource.org.apache.ws.commons.schema-1.3.2.jar urls[17] = file:/C:/netbeans_maven_repo/org/springframework/org.springframework.beans/2.5.6.A/org.springframework.beans-2.5.6.A.jar urls[18] = file:/C:/netbeans_maven_repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar [FATAL ERROR] Container realm = plexus.core urls[0] = file:/C:/Programme/maven/apache-maven-2.0.9/lib/maven-2.0.9-uber.jar ------------------------------------------------------------------------ [ERROR]FATAL ERROR ------------------------------------------------------------------------ com/springsource/util/math/Sets com.springsource.util.math.Sets ------------------------------------------------------------------------ Trace java.lang.NoClassDefFoundError: com/springsource/util/math/Sets at com.springsource.bundlor.support.HibernateMappingParser.<clinit>(HibernateMappingParser.java:107) at com.springsource.bundlor.support.StandardBundleTransformer.<init>(StandardBundleTransformer.java:92) at com.springsource.bundlor.maven.plugin.AbstractBundlorMojo.execute(AbstractBundlorMojo.java:192) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: java.lang.ClassNotFoundException: com.springsource.util.math.Sets 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:306) at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274) at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) ... 21 more
    via by Michael Pralow,
  • with a fresh checkout some minutes ago, i get a maven build error, when building the spring batch (parent) or infrastructure alone Building jar: C:\netbeans_projects\spring-batch\spring-batch-infrastructure\target\org.springframework.batch.infrastructure-2.0.0.CI-SNAPSHOT.jar [WARNING] Attempting to build MavenProject instance for Artifact (com.springsource.bundlor:com.springsource.bundlor.maven:1.0.0.BUILD-20090201.212350-20) of type: maven-plugin; constructing POM artifact instead. [com.springsource.bundlor.:transform {execution: bundlor-transform}] [FATAL ERROR] com.springsource.bundlor.maven.plugin.TransformBundlorMojo#execute() caused a linkage error (java.lang.NoClassDefFoundError) and may be out-of-date. Check the realms: [FATAL ERROR] Plugin realm = app0.child-container[com.springsource.bundlor:com.springsource.bundlor.maven] urls[0] = file:/C:/netbeans_maven_repo/com/springsource/bundlor/com.springsource.bundlor.maven/1.0.0.BUILD-SNAPSHOT/com.springsource.bundlor.maven-1.0.0.BUILD-SNAPSHOT.jar urls[1] = file:/C:/netbeans_maven_repo/org/springframework/org.springframework.core/2.5.6.A/org.springframework.core-2.5.6.A.jar urls[2] = file:/C:/netbeans_maven_repo/org/apache/commons/com.springsource.org.apache.commons.logging/1.1.1/com.springsource.org.apache.commons.logging-1.1.1.jar urls[3] = file:/C:/netbeans_maven_repo/com/springsource/bundlor/com.springsource.bundlor/1.0.0.BUILD-SNAPSHOT/com.springsource.bundlor-1.0.0.BUILD-SNAPSHOT.jar urls[4] = file:/C:/netbeans_maven_repo/com/springsource/util/com.springsource.util.osgi/1.5.0.BUILD-SNAPSHOT/com.springsource.util.osgi-1.5.0.BUILD-SNAPSHOT.jar urls[5] = file:/C:/netbeans_maven_repo/org/antlr/com.springsource.org.antlr/3.0.1/com.springsource.org.antlr-3.0.1.jar urls[6] = file:/C:/netbeans_maven_repo/org/eclipse/osgi/org.eclipse.osgi/3.4.0.v20080605-1900/org.eclipse.osgi-3.4.0.v20080605-1900.jar urls[7] = file:/C:/netbeans_maven_repo/com/springsource/util/com.springsource.util.common/1.5.0.BUILD-SNAPSHOT/com.springsource.util.common-1.5.0.BUILD-SNAPSHOT.jar urls[8] = file:/C:/netbeans_maven_repo/com/springsource/util/com.springsource.util.io/1.5.0.BUILD-SNAPSHOT/com.springsource.util.io-1.5.0.BUILD-SNAPSHOT.jar urls[9] = file:/C:/netbeans_maven_repo/org/objectweb/asm/com.springsource.org.objectweb.asm/3.1.0/com.springsource.org.objectweb.asm-3.1.0.jar urls[10] = file:/C:/netbeans_maven_repo/org/objectweb/asm/com.springsource.org.objectweb.asm.tree/3.1.0/com.springsource.org.objectweb.asm.tree-3.1.0.jar urls[11] = file:/C:/netbeans_maven_repo/org/objectweb/asm/com.springsource.org.objectweb.asm.commons/3.1.0/com.springsource.org.objectweb.asm.commons-3.1.0.jar urls[12] = file:/C:/netbeans_maven_repo/org/apache/commons/com.springsource.org.apache.commons.cli/1.1.0/com.springsource.org.apache.commons.cli-1.1.0.jar urls[13] = file:/C:/netbeans_maven_repo/org/slf4j/com.springsource.slf4j.nop/1.5.0/com.springsource.slf4j.nop-1.5.0.jar urls[14] = file:/C:/netbeans_maven_repo/org/slf4j/com.springsource.slf4j.api/1.5.0/com.springsource.slf4j.api-1.5.0.jar urls[15] = file:/C:/netbeans_maven_repo/org/springframework/ws/org.springframework.xml/1.5.2.A/org.springframework.xml-1.5.2.A.jar urls[16] = file:/C:/netbeans_maven_repo/org/apache/ws/com.springsource.org.apache.ws.commons.schema/1.3.2/com.springsource.org.apache.ws.commons.schema-1.3.2.jar urls[17] = file:/C:/netbeans_maven_repo/org/springframework/org.springframework.beans/2.5.6.A/org.springframework.beans-2.5.6.A.jar urls[18] = file:/C:/netbeans_maven_repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar [FATAL ERROR] Container realm = plexus.core urls[0] = file:/C:/Programme/maven/apache-maven-2.0.9/lib/maven-2.0.9-uber.jar ------------------------------------------------------------------------ [ERROR]FATAL ERROR ------------------------------------------------------------------------ com/springsource/util/math/Sets com.springsource.util.math.Sets ------------------------------------------------------------------------ Trace java.lang.NoClassDefFoundError: com/springsource/util/math/Sets at com.springsource.bundlor.support.HibernateMappingParser.<clinit>(HibernateMappingParser.java:107) at com.springsource.bundlor.support.StandardBundleTransformer.<init>(StandardBundleTransformer.java:92) at com.springsource.bundlor.maven.plugin.AbstractBundlorMojo.execute(AbstractBundlorMojo.java:192) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: java.lang.ClassNotFoundException: com.springsource.util.math.Sets 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:306) at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274) at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) ... 21 more
    via by Sergey Shcherbakov,
  • with a fresh checkout some minutes ago, i get a maven build error, when building the spring batch (parent) or infrastructure alone Building jar: C:\netbeans_projects\spring-batch\spring-batch-infrastructure\target\org.springframework.batch.infrastructure-2.0.0.CI-SNAPSHOT.jar [WARNING] Attempting to build MavenProject instance for Artifact (com.springsource.bundlor:com.springsource.bundlor.maven:1.0.0.BUILD-20090201.212350-20) of type: maven-plugin; constructing POM artifact instead. [com.springsource.bundlor.:transform {execution: bundlor-transform}] [FATAL ERROR] com.springsource.bundlor.maven.plugin.TransformBundlorMojo#execute() caused a linkage error (java.lang.NoClassDefFoundError) and may be out-of-date. Check the realms: [FATAL ERROR] Plugin realm = app0.child-container[com.springsource.bundlor:com.springsource.bundlor.maven] urls[0] = file:/C:/netbeans_maven_repo/com/springsource/bundlor/com.springsource.bundlor.maven/1.0.0.BUILD-SNAPSHOT/com.springsource.bundlor.maven-1.0.0.BUILD-SNAPSHOT.jar urls[1] = file:/C:/netbeans_maven_repo/org/springframework/org.springframework.core/2.5.6.A/org.springframework.core-2.5.6.A.jar urls[2] = file:/C:/netbeans_maven_repo/org/apache/commons/com.springsource.org.apache.commons.logging/1.1.1/com.springsource.org.apache.commons.logging-1.1.1.jar urls[3] = file:/C:/netbeans_maven_repo/com/springsource/bundlor/com.springsource.bundlor/1.0.0.BUILD-SNAPSHOT/com.springsource.bundlor-1.0.0.BUILD-SNAPSHOT.jar urls[4] = file:/C:/netbeans_maven_repo/com/springsource/util/com.springsource.util.osgi/1.5.0.BUILD-SNAPSHOT/com.springsource.util.osgi-1.5.0.BUILD-SNAPSHOT.jar urls[5] = file:/C:/netbeans_maven_repo/org/antlr/com.springsource.org.antlr/3.0.1/com.springsource.org.antlr-3.0.1.jar urls[6] = file:/C:/netbeans_maven_repo/org/eclipse/osgi/org.eclipse.osgi/3.4.0.v20080605-1900/org.eclipse.osgi-3.4.0.v20080605-1900.jar urls[7] = file:/C:/netbeans_maven_repo/com/springsource/util/com.springsource.util.common/1.5.0.BUILD-SNAPSHOT/com.springsource.util.common-1.5.0.BUILD-SNAPSHOT.jar urls[8] = file:/C:/netbeans_maven_repo/com/springsource/util/com.springsource.util.io/1.5.0.BUILD-SNAPSHOT/com.springsource.util.io-1.5.0.BUILD-SNAPSHOT.jar urls[9] = file:/C:/netbeans_maven_repo/org/objectweb/asm/com.springsource.org.objectweb.asm/3.1.0/com.springsource.org.objectweb.asm-3.1.0.jar urls[10] = file:/C:/netbeans_maven_repo/org/objectweb/asm/com.springsource.org.objectweb.asm.tree/3.1.0/com.springsource.org.objectweb.asm.tree-3.1.0.jar urls[11] = file:/C:/netbeans_maven_repo/org/objectweb/asm/com.springsource.org.objectweb.asm.commons/3.1.0/com.springsource.org.objectweb.asm.commons-3.1.0.jar urls[12] = file:/C:/netbeans_maven_repo/org/apache/commons/com.springsource.org.apache.commons.cli/1.1.0/com.springsource.org.apache.commons.cli-1.1.0.jar urls[13] = file:/C:/netbeans_maven_repo/org/slf4j/com.springsource.slf4j.nop/1.5.0/com.springsource.slf4j.nop-1.5.0.jar urls[14] = file:/C:/netbeans_maven_repo/org/slf4j/com.springsource.slf4j.api/1.5.0/com.springsource.slf4j.api-1.5.0.jar urls[15] = file:/C:/netbeans_maven_repo/org/springframework/ws/org.springframework.xml/1.5.2.A/org.springframework.xml-1.5.2.A.jar urls[16] = file:/C:/netbeans_maven_repo/org/apache/ws/com.springsource.org.apache.ws.commons.schema/1.3.2/com.springsource.org.apache.ws.commons.schema-1.3.2.jar urls[17] = file:/C:/netbeans_maven_repo/org/springframework/org.springframework.beans/2.5.6.A/org.springframework.beans-2.5.6.A.jar urls[18] = file:/C:/netbeans_maven_repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar [FATAL ERROR] Container realm = plexus.core urls[0] = file:/C:/Programme/maven/apache-maven-2.0.9/lib/maven-2.0.9-uber.jar ------------------------------------------------------------------------ [ERROR]FATAL ERROR ------------------------------------------------------------------------ com/springsource/util/math/Sets com.springsource.util.math.Sets ------------------------------------------------------------------------ Trace java.lang.NoClassDefFoundError: com/springsource/util/math/Sets at com.springsource.bundlor.support.HibernateMappingParser.<clinit>(HibernateMappingParser.java:107) at com.springsource.bundlor.support.StandardBundleTransformer.<init>(StandardBundleTransformer.java:92) at com.springsource.bundlor.maven.plugin.AbstractBundlorMojo.execute(AbstractBundlorMojo.java:192) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: java.lang.ClassNotFoundException: com.springsource.util.math.Sets 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:306) at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274) at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) ... 21 more
    via by Michael Pralow,
  • with a fresh checkout some minutes ago, i get a maven build error, when building the spring batch (parent) or infrastructure alone Building jar: C:\netbeans_projects\spring-batch\spring-batch-infrastructure\target\org.springframework.batch.infrastructure-2.0.0.CI-SNAPSHOT.jar [WARNING] Attempting to build MavenProject instance for Artifact (com.springsource.bundlor:com.springsource.bundlor.maven:1.0.0.BUILD-20090201.212350-20) of type: maven-plugin; constructing POM artifact instead. [com.springsource.bundlor.:transform {execution: bundlor-transform}] [FATAL ERROR] com.springsource.bundlor.maven.plugin.TransformBundlorMojo#execute() caused a linkage error (java.lang.NoClassDefFoundError) and may be out-of-date. Check the realms: [FATAL ERROR] Plugin realm = app0.child-container[com.springsource.bundlor:com.springsource.bundlor.maven] urls[0] = file:/C:/netbeans_maven_repo/com/springsource/bundlor/com.springsource.bundlor.maven/1.0.0.BUILD-SNAPSHOT/com.springsource.bundlor.maven-1.0.0.BUILD-SNAPSHOT.jar urls[1] = file:/C:/netbeans_maven_repo/org/springframework/org.springframework.core/2.5.6.A/org.springframework.core-2.5.6.A.jar urls[2] = file:/C:/netbeans_maven_repo/org/apache/commons/com.springsource.org.apache.commons.logging/1.1.1/com.springsource.org.apache.commons.logging-1.1.1.jar urls[3] = file:/C:/netbeans_maven_repo/com/springsource/bundlor/com.springsource.bundlor/1.0.0.BUILD-SNAPSHOT/com.springsource.bundlor-1.0.0.BUILD-SNAPSHOT.jar urls[4] = file:/C:/netbeans_maven_repo/com/springsource/util/com.springsource.util.osgi/1.5.0.BUILD-SNAPSHOT/com.springsource.util.osgi-1.5.0.BUILD-SNAPSHOT.jar urls[5] = file:/C:/netbeans_maven_repo/org/antlr/com.springsource.org.antlr/3.0.1/com.springsource.org.antlr-3.0.1.jar urls[6] = file:/C:/netbeans_maven_repo/org/eclipse/osgi/org.eclipse.osgi/3.4.0.v20080605-1900/org.eclipse.osgi-3.4.0.v20080605-1900.jar urls[7] = file:/C:/netbeans_maven_repo/com/springsource/util/com.springsource.util.common/1.5.0.BUILD-SNAPSHOT/com.springsource.util.common-1.5.0.BUILD-SNAPSHOT.jar urls[8] = file:/C:/netbeans_maven_repo/com/springsource/util/com.springsource.util.io/1.5.0.BUILD-SNAPSHOT/com.springsource.util.io-1.5.0.BUILD-SNAPSHOT.jar urls[9] = file:/C:/netbeans_maven_repo/org/objectweb/asm/com.springsource.org.objectweb.asm/3.1.0/com.springsource.org.objectweb.asm-3.1.0.jar urls[10] = file:/C:/netbeans_maven_repo/org/objectweb/asm/com.springsource.org.objectweb.asm.tree/3.1.0/com.springsource.org.objectweb.asm.tree-3.1.0.jar urls[11] = file:/C:/netbeans_maven_repo/org/objectweb/asm/com.springsource.org.objectweb.asm.commons/3.1.0/com.springsource.org.objectweb.asm.commons-3.1.0.jar urls[12] = file:/C:/netbeans_maven_repo/org/apache/commons/com.springsource.org.apache.commons.cli/1.1.0/com.springsource.org.apache.commons.cli-1.1.0.jar urls[13] = file:/C:/netbeans_maven_repo/org/slf4j/com.springsource.slf4j.nop/1.5.0/com.springsource.slf4j.nop-1.5.0.jar urls[14] = file:/C:/netbeans_maven_repo/org/slf4j/com.springsource.slf4j.api/1.5.0/com.springsource.slf4j.api-1.5.0.jar urls[15] = file:/C:/netbeans_maven_repo/org/springframework/ws/org.springframework.xml/1.5.2.A/org.springframework.xml-1.5.2.A.jar urls[16] = file:/C:/netbeans_maven_repo/org/apache/ws/com.springsource.org.apache.ws.commons.schema/1.3.2/com.springsource.org.apache.ws.commons.schema-1.3.2.jar urls[17] = file:/C:/netbeans_maven_repo/org/springframework/org.springframework.beans/2.5.6.A/org.springframework.beans-2.5.6.A.jar urls[18] = file:/C:/netbeans_maven_repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar [FATAL ERROR] Container realm = plexus.core urls[0] = file:/C:/Programme/maven/apache-maven-2.0.9/lib/maven-2.0.9-uber.jar ------------------------------------------------------------------------ [ERROR]FATAL ERROR ------------------------------------------------------------------------ com/springsource/util/math/Sets com.springsource.util.math.Sets ------------------------------------------------------------------------ Trace java.lang.NoClassDefFoundError: com/springsource/util/math/Sets at com.springsource.bundlor.support.HibernateMappingParser.<clinit>(HibernateMappingParser.java:107) at com.springsource.bundlor.support.StandardBundleTransformer.<init>(StandardBundleTransformer.java:92) at com.springsource.bundlor.maven.plugin.AbstractBundlorMojo.execute(AbstractBundlorMojo.java:192) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: java.lang.ClassNotFoundException: com.springsource.util.math.Sets 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:306) at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274) at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) ... 21 more
    via by Sergey Shcherbakov,
  • When running sonar on a simple HelloWorld project, I am getting the following ClassNotFoundException: mag@ubuntu:~/projekte/helloworld$ mvn clean install sonar:sonar [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'sonar'. [INFO] ------------------------------------------------------------------------ [INFO] Building helloworld [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean] [INFO] Deleting directory /home/mag/projekte/helloworld/target [INFO] [resources:resources] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory /home/mag/projekte/helloworld/src/main/resources [INFO] [compiler:compile] [INFO] Compiling 1 source file to /home/mag/projekte/helloworld/target/classes [INFO] [resources:testResources] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory /home/mag/projekte/helloworld/src/test/resources [INFO] [compiler:testCompile] [INFO] Compiling 1 source file to /home/mag/projekte/helloworld/target/test-classes [INFO] [surefire:test] [INFO] Surefire report directory: /home/mag/projekte/helloworld/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running mho.AppTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.086 sec Results : Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 [INFO] [jar:jar] [INFO] Building jar: /home/mag/projekte/helloworld/target/helloworld-1.0-SNAPSHOT.jar [INFO] [install:install] [INFO] Installing /home/mag/projekte/helloworld/target/helloworld-1.0-SNAPSHOT.jar to /home/mag/.m2/repository/mho/helloworld/1.0-SNAPSHOT/helloworld-1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] Building helloworld [INFO] task-segment: [sonar:sonar] (aggregator-style) [INFO] ------------------------------------------------------------------------ [INFO] [sonar:sonar] [INFO] Sonar host: http://localhost:9000 [INFO] Sonar version: 1.8 [INFO] [sonar-core:internal] [INFO] Sonar JDBC URL: jdbc:derby://localhost:1527/sonar [INFO] Sonar JDBC login: sonar [INFO] Sonar JDBC driver: org.apache.derby.jdbc.ClientDriver [INFO] Sonar branch: [FATAL ERROR] org.sonar.mojo.InternalMojo#execute() caused a linkage error (java.lang.NoClassDefFoundError) and may be out-of-date. Check the realms: [FATAL ERROR] Plugin realm = app0.child-container[org.codehaus.sonar.runtime:sonar-core-maven-plugin] urls[0] = file:/home/mag/.m2/repository/org/codehaus/sonar/runtime/sonar-core-maven-plugin/20090423053034/sonar-core-maven-plugin-20090423053034.jar urls[1] = file:/home/mag/.m2/repository/org/codehaus/sonar/sonar-commons/1.8/sonar-commons-1.8.jar urls[2] = file:/home/mag/.m2/repository/org/picocontainer/picocontainer/2.7/picocontainer-2.7.jar urls[3] = file:/home/mag/.m2/repository/org/slf4j/slf4j-api/1.5.6/slf4j-api-1.5.6.jar urls[4] = file:/home/mag/.m2/repository/org/slf4j/jcl-over-slf4j/1.5.6/jcl-over-slf4j-1.5.6.jar urls[5] = file:/home/mag/.m2/repository/ch/qos/logback/logback-classic/0.9.15/logback-classic-0.9.15.jar urls[6] = file:/home/mag/.m2/repository/ch/qos/logback/logback-core/0.9.15/logback-core-0.9.15.jar urls[7] = file:/home/mag/.m2/repository/geronimo-spec/geronimo-spec-jta/1.0-M1/geronimo-spec-jta-1.0-M1.jar urls[8] = file:/home/mag/.m2/repository/org/hibernate/hibernate/3.2.6.ga/hibernate-3.2.6.ga.jar urls[9] = file:/home/mag/.m2/repository/org/hibernate/hibernate-annotations/3.3.1.GA/hibernate-annotations-3.3.1.GA.jar urls[10] = file:/home/mag/.m2/repository/org/hibernate/hibernate-commons-annotations/3.3.0.ga/hibernate-commons-annotations-3.3.0.ga.jar urls[11] = file:/home/mag/.m2/repository/org/hibernate/ejb3-persistence/1.0.1.GA/ejb3-persistence-1.0.1.GA.jar urls[12] = file:/home/mag/.m2/repository/javax/persistence/persistence-api/1.0/persistence-api-1.0.jar urls[13] = file:/home/mag/.m2/repository/org/hibernate/hibernate-entitymanager/3.3.1.ga/hibernate-entitymanager-3.3.1.ga.jar urls[14] = file:/home/mag/.m2/repository/org/hibernate/hibernate-validator/3.0.0.ga/hibernate-validator-3.0.0.ga.jar urls[15] = file:/home/mag/.m2/repository/jboss/javassist/3.3.ga/javassist-3.3.ga.jar urls[16] = file:/home/mag/.m2/repository/jboss/jboss-common-core/2.0.4.GA/jboss-common-core-2.0.4.GA.jar urls[17] = file:/home/mag/.m2/repository/commons-configuration/commons-configuration/1.5/commons-configuration-1.5.jar urls[18] = file:/home/mag/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar urls[19] = file:/home/mag/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar urls[20] = file:/home/mag/.m2/repository/commons-digester/commons-digester/1.8/commons-digester-1.8.jar urls[21] = file:/home/mag/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar urls[22] = file:/home/mag/.m2/repository/commons-beanutils/commons-beanutils-core/1.7.0/commons-beanutils-core-1.7.0.jar urls[23] = file:/home/mag/.m2/repository/commons-io/commons-io/1.4/commons-io-1.4.jar urls[24] = file:/home/mag/.m2/repository/commons-dbcp/commons-dbcp/1.2.2/commons-dbcp-1.2.2.jar urls[25] = file:/home/mag/.m2/repository/commons-pool/commons-pool/1.3/commons-pool-1.3.jar urls[26] = file:/home/mag/.m2/repository/xerces/xercesImpl/2.8.1/xercesImpl-2.8.1.jar urls[27] = file:/home/mag/.m2/repository/xml-apis/xml-apis/1.3.03/xml-apis-1.3.03.jar urls[28] = file:/home/mag/.m2/repository/org/codehaus/sonar/sonar-plugin-api/1.8/sonar-plugin-api-1.8.jar urls[29] = file:/home/mag/.m2/repository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar urls[30] = file:/home/mag/.m2/repository/jfree/jfreechart/1.0.9/jfreechart-1.0.9.jar urls[31] = file:/home/mag/.m2/repository/jfree/jcommon/1.0.12/jcommon-1.0.12.jar urls[32] = file:/home/mag/.m2/repository/com/thoughtworks/xstream/xstream/1.3/xstream-1.3.jar urls[33] = file:/home/mag/.m2/repository/xpp3/xpp3/1.1.3.3/xpp3-1.1.3.3.jar urls[34] = file:/home/mag/.m2/repository/org/codehaus/woodstox/woodstox-core-lgpl/4.0.3/woodstox-core-lgpl-4.0.3.jar urls[35] = file:/home/mag/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar urls[36] = file:/home/mag/.m2/repository/org/codehaus/woodstox/stax2-api/3.0.1/stax2-api-3.0.1.jar urls[37] = file:/home/mag/.m2/repository/pmd/pmd/4.2.5/pmd-4.2.5.jar urls[38] = file:/home/mag/.m2/repository/ant/ant/1.6/ant-1.6.jar urls[39] = file:/home/mag/.m2/repository/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar urls[40] = file:/home/mag/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar urls[41] = file:/home/mag/.m2/repository/jdom/jdom/1.0/jdom-1.0.jar urls[42] = file:/home/mag/.m2/repository/xom/xom/1.0/xom-1.0.jar urls[43] = file:/home/mag/.m2/repository/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar urls[44] = file:/home/mag/.m2/repository/xalan/xalan/2.6.0/xalan-2.6.0.jar urls[45] = file:/home/mag/.m2/repository/com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.jar urls[46] = file:/home/mag/.m2/repository/junit/junit/4.4/junit-4.4.jar urls[47] = file:/home/mag/.m2/repository/org/codehaus/sonar/runtime/jdbc-driver/parent/20090423053034/parent-20090423053034.pom urls[48] = file:/home/mag/.m2/repository/org/codehaus/sonar/runtime/jdbc-driver/derbyclient-10.4.2.0/20090423053034/derbyclient-10.4.2.0-20090423053034.jar urls[49] = file:/home/mag/.m2/repository/org/codehaus/sonar/runtime/plugins/parent/20090423053034/parent-20090423053034.pom urls[50] = file:/home/mag/.m2/repository/org/codehaus/sonar/runtime/plugins/sonar-plugin-checkstyle-1.8/20090423053034/sonar-plugin-checkstyle-1.8-20090423053034.jar urls[51] = file:/home/mag/.m2/repository/org/codehaus/sonar/runtime/plugins/sonar-plugin-clover-1.8/20090423053034/sonar-plugin-clover-1.8-20090423053034.jar urls[52] = file:/home/mag/.m2/repository/org/codehaus/sonar/runtime/plugins/sonar-plugin-cobertura-1.8/20090423053034/sonar-plugin-cobertura-1.8-20090423053034.jar urls[53] = file:/home/mag/.m2/repository/org/codehaus/sonar/runtime/plugins/sonar-plugin-core-1.8/20090423053034/sonar-plugin-core-1.8-20090423053034.jar urls[54] = file:/home/mag/.m2/repository/org/codehaus/sonar/runtime/plugins/sonar-plugin-cpd-1.8/20090423053034/sonar-plugin-cpd-1.8-20090423053034.jar urls[55] = file:/home/mag/.m2/repository/org/codehaus/sonar/runtime/plugins/sonar-plugin-findbugs-1.8/20090423053034/sonar-plugin-findbugs-1.8-20090423053034.jar urls[56] = file:/home/mag/.m2/repository/org/codehaus/sonar/runtime/plugins/sonar-plugin-googleanalytics-1.8/20090423053034/sonar-plugin-googleanalytics-1.8-20090423053034.jar urls[57] = file:/home/mag/.m2/repository/org/codehaus/sonar/runtime/plugins/sonar-plugin-javancss-1.8/20090423053034/sonar-plugin-javancss-1.8-20090423053034.jar urls[58] = file:/home/mag/.m2/repository/org/codehaus/sonar/runtime/plugins/sonar-plugin-pmd-1.8/20090423053034/sonar-plugin-pmd-1.8-20090423053034.jar urls[59] = file:/home/mag/.m2/repository/org/codehaus/sonar/runtime/plugins/sonar-plugin-surefire-1.8/20090423053034/sonar-plugin-surefire-1.8-20090423053034.jar urls[60] = file:/home/mag/.m2/repository/org/codehaus/sonar/runtime/rules-extensions/parent/20090423053034/parent-20090423053034.pom urls[61] = file:/home/mag/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar [FATAL ERROR] Container realm = plexus.core urls[0] = file:/opt/apache-maven-2.0.10/lib/maven-2.0.10-uber.jar [FATAL ERROR] org.codehaus.mojo.sonar.SonarMojo#execute() caused a linkage error (java.lang.NoClassDefFoundError) and may be out-of-date. Check the realms: [FATAL ERROR] Plugin realm = app0.child-container[org.codehaus.mojo:sonar-maven-plugin] urls[0] = file:/home/mag/.m2/repository/org/codehaus/mojo/sonar-maven-plugin/1.0-beta-1/sonar-maven-plugin-1.0-beta-1.jar urls[1] = file:/home/mag/.m2/repository/commons-io/commons-io/1.3/commons-io-1.3.jar urls[2] = file:/home/mag/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar urls[3] = file:/home/mag/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar [FATAL ERROR] Container realm = plexus.core urls[0] = file:/opt/apache-maven-2.0.10/lib/maven-2.0.10-uber.jar [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] net/sf/cglib/proxy/CallbackFilter net.sf.cglib.proxy.CallbackFilter [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.NoClassDefFoundError: net/sf/cglib/proxy/CallbackFilter at org.hibernate.bytecode.cglib.BytecodeProviderImpl.getProxyFactoryFactory(BytecodeProviderImpl.java:33) at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactoryInternal(PojoEntityTuplizer.java:182) at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:160) at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:135) at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:55) at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(EntityEntityModeToTuplizerMapping.java:56) at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:302) at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:434) at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:109) at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300) at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:859) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:730) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:121) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52) at org.sonar.commons.database.DriverDatabaseConnector.getEntityManagerFactory(DriverDatabaseConnector.java:134) at org.sonar.commons.database.DriverDatabaseConnector.createEntityManager(DriverDatabaseConnector.java:139) at org.sonar.commons.database.DatabaseSession.start(DatabaseSession.java:55) at org.sonar.commons.database.ThreadLocalDatabaseSessionFactory.getSession(ThreadLocalDatabaseSessionFactory.java:35) at org.sonar.commons.database.DatabaseSessionProvider.provide(DatabaseSessionProvider.java:28) 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.picocontainer.injectors.MethodInjector.invokeMethod(MethodInjector.java:137) at org.picocontainer.injectors.MethodInjector.access$000(MethodInjector.java:39) at org.picocontainer.injectors.MethodInjector$2.run(MethodInjector.java:123) at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:289) at org.picocontainer.injectors.MethodInjector.decorateComponentInstance(MethodInjector.java:130) at org.picocontainer.injectors.CompositeInjector.decorateComponentInstance(CompositeInjector.java:59) at org.picocontainer.injectors.Reinjector.reinject(Reinjector.java:99) at org.picocontainer.injectors.ProviderAdapter.getComponentInstance(ProviderAdapter.java:84) at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:573) at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:534) at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:546) at org.sonar.mojo.MavenExtensionsContainer.stop(MavenExtensionsContainer.java:91) at org.sonar.mojo.InternalMojo.execute(InternalMojo.java:153) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453) at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:82) at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65) at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:117) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:513) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:483) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:228) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:301) 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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: java.lang.ClassNotFoundException: net.sf.cglib.proxy.CallbackFilter 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:306) at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274) at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) ... 60 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 13 seconds [INFO] Finished at: Thu Apr 23 06:25:43 GMT 2009 [INFO] Final Memory: 21M/38M [INFO] ------------------------------------------------------------------------ mag@ubuntu:~/projekte/helloworld$ mvn -version Maven version: 2.0.10 Java version: 1.6.0_06 OS name: "linux" version: "2.6.24-23-generic" arch: "i386" Family: "unix" mag@ubuntu:~/projekte/helloworld$
    via by Mag Hoehme,
  • BATCH: All dressed up, with nowhere to go...
    via by gump@vmgump.apache.org,
  • Maven site-deploy build error
    via Stack Overflow by sanjayav
    ,
  • maven 2 problems
    via Stack Overflow by Kuen
    ,
    • java.lang.NoClassDefFoundError: com/springsource/util/math/Sets at com.springsource.bundlor.support.HibernateMappingParser.<clinit>(HibernateMappingParser.java:107) at com.springsource.bundlor.support.StandardBundleTransformer.<init>(StandardBundleTransformer.java:92) at com.springsource.bundlor.maven.plugin.AbstractBundlorMojo.execute(AbstractBundlorMojo.java:192) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: java.lang.ClassNotFoundException: com.springsource.util.math.Sets 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:306) at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274) at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) ... 21 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    2285 more bugmates