org.apache.maven.surefire.util.SurefireReflectionException

tip

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

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

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.

  • jacoco coverage per test setup
    via Stack Overflow by baadshah
    ,
  • No class found error in Netbeans
    via Stack Overflow by Harsha
    ,
  • GitHub comment 422#157798957
    via GitHub by Mistic92
    ,
  • Recent (1.360+) Hudson seems to depend on apt-maven-plugin and other tools/* which hard code requirements (via import) on com.sun.mirror.apt packages and classes. This excludes all but Sun JDKs from compiling anything in Hudson, including plugins. + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building Unnamed - hudson.plugins:testing:hpi:1.0-SNAPSHOT [INFO] task-segment: [hpi:run] [INFO] ------------------------------------------------------------------------ [INFO] Preparing hpi:run [INFO] [enforcer:display-info {execution: default}] [INFO] Maven Version: 2.2.1 [INFO] JDK Version: 1.6.0 normalized as: 1.6.0 [INFO] OS Info: Arch: amd64 Family: unix Name: linux Version: 2.6.32.14 [INFO] [localizer:generate {execution: default}] [INFO] [resources:resources {execution: default-resources}] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 4 resources ----------------------------------------------------- this realm = app0.child-container[org.jvnet.hudson.tools:maven-hpi-plugin:1.52] urls[0] = file:/home/jesse/.m2/repository/org/jvnet/hudson/tools/maven-hpi-plugin/1.52/maven-hpi-plugin-1.52.jar urls[1] = file:/home/jesse/.m2/repository/org/apache/maven/maven-archiver/2.0.1/maven-archiver-2.0.1.jar urls[2] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.jar urls[3] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-4/plexus-archiver-1.0-alpha-4.jar urls[4] = file:/home/jesse/.m2/repository/org/mortbay/jetty/maven-jetty-plugin/6.1.1/maven-jetty-plugin-6.1.1.jar urls[5] = file:/home/jesse/.m2/repository/commons-el/commons-el/1.0/commons-el-1.0.jar urls[6] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jetty/6.1.1/jetty-6.1.1.jar urls[7] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jetty-util/6.1.1/jetty-util-6.1.1.jar urls[8] = file:/home/jesse/.m2/repository/org/mortbay/jetty/servlet-api-2.5/6.1.1/servlet-api-2.5-6.1.1.jar urls[9] = file:/home/jesse/.m2/repository/org/apache/maven/maven-plugin-tools-api/2.0/maven-plugin-tools-api-2.0.jar urls[10] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jetty-plus/6.1.1/jetty-plus-6.1.1.jar urls[11] = file:/home/jesse/.m2/repository/javax/mail/mail/1.4/mail-1.4.jar urls[12] = file:/home/jesse/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar urls[13] = file:/home/jesse/.m2/repository/geronimo-spec/geronimo-spec-jta/1.0.1B-rc4/geronimo-spec-jta-1.0.1B-rc4.jar urls[14] = file:/home/jesse/.m2/repository/ant/ant/1.6.5/ant-1.6.5.jar urls[15] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jetty-naming/6.1.1/jetty-naming-6.1.1.jar urls[16] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jetty-management/6.1.1/jetty-management-6.1.1.jar urls[17] = file:/home/jesse/.m2/repository/mx4j/mx4j/3.0.1/mx4j-3.0.1.jar urls[18] = file:/home/jesse/.m2/repository/mx4j/mx4j-tools/3.0.1/mx4j-tools-3.0.1.jar urls[19] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jsp-2.1/6.1.1/jsp-2.1-6.1.1.jar urls[20] = file:/home/jesse/.m2/repository/org/eclipse/jdt/core/3.1.1/core-3.1.1.jar urls[21] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jsp-api-2.1/6.1.1/jsp-api-2.1-6.1.1.jar urls[22] = file:/home/jesse/.m2/repository/org/apache/maven/plugins/maven-archetype-plugin/1.0-alpha-4/maven-archetype-plugin-1.0-alpha-4.jar urls[23] = file:/home/jesse/.m2/repository/org/apache/maven/archetype/maven-archetype-core/1.0-alpha-4/maven-archetype-core-1.0-alpha-4.jar urls[24] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.2/plexus-velocity-1.1.2.jar urls[25] = file:/home/jesse/.m2/repository/commons-collections/commons-collections/2.0/commons-collections-2.0.jar urls[26] = file:/home/jesse/.m2/repository/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar urls[27] = file:/home/jesse/.m2/repository/velocity/velocity/1.4/velocity-1.4.jar urls[28] = file:/home/jesse/.m2/repository/velocity/velocity-dep/1.4/velocity-dep-1.4.jar urls[29] = file:/home/jesse/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar urls[30] = file:/home/jesse/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar urls[31] = file:/home/jesse/.m2/repository/org/apache/maven/archetype/maven-archetype-creator/1.0-alpha-4/maven-archetype-creator-1.0-alpha-4.jar urls[32] = file:/home/jesse/.m2/repository/org/apache/maven/archetype/maven-archetype-model/1.0-alpha-4/maven-archetype-model-1.0-alpha-4.jar urls[33] = file:/home/jesse/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar urls[34] = file:/home/jesse/.m2/repository/javanettasks/javanettasks/1.0.24/javanettasks-1.0.24.jar urls[35] = file:/home/jesse/.m2/repository/nekohtml/nekohtml/0.9.5/nekohtml-0.9.5.jar urls[36] = file:/home/jesse/.m2/repository/xerces/xercesImpl/2.2.1/xercesImpl-2.2.1.jar urls[37] = file:/home/jesse/.m2/repository/javanettasks/httpunit/1.5.4/httpunit-1.5.4.jar urls[38] = file:/home/jesse/.m2/repository/javax/servlet/servlet-api/2.3/servlet-api-2.3.jar urls[39] = file:/home/jesse/.m2/repository/jtidy/jtidy/4aug2000r7-dev/jtidy-4aug2000r7-dev.jar urls[40] = file:/home/jesse/.m2/repository/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar urls[41] = file:/home/jesse/.m2/repository/org/kohsuke/stapler/maven-stapler-plugin/1.12/maven-stapler-plugin-1.12.jar urls[42] = file:/home/jesse/.m2/repository/org/kohsuke/stapler/stapler/1.100/stapler-1.100.jar urls[43] = file:/home/jesse/.m2/repository/commons-discovery/commons-discovery/0.4/commons-discovery-0.4.jar urls[44] = file:/home/jesse/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar urls[45] = file:/home/jesse/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar urls[46] = file:/home/jesse/.m2/repository/commons-io/commons-io/1.3.1/commons-io-1.3.1.jar urls[47] = file:/home/jesse/.m2/repository/org/jvnet/localizer/localizer/1.7/localizer-1.7.jar urls[48] = file:/home/jesse/.m2/repository/org/kohsuke/stapler/json-lib/2.1/json-lib-2.1-jdk15.jar urls[49] = file:/home/jesse/.m2/repository/commons-lang/commons-lang/2.3/commons-lang-2.3.jar urls[50] = file:/home/jesse/.m2/repository/net/sf/ezmorph/ezmorph/1.0.3/ezmorph-1.0.3.jar urls[51] = file:/home/jesse/.m2/repository/org/jvnet/tiger-types/1.1/tiger-types-1.1.jar urls[52] = file:/home/jesse/.m2/repository/commons-fileupload/commons-fileupload/1.2.1/commons-fileupload-1.2.1.jar urls[53] = file:/home/jesse/.m2/repository/qdox/qdox/1.6.1/qdox-1.6.1.jar urls[54] = file:/home/jesse/.m2/repository/org/apache/maven/plugins/maven-compiler-plugin/2.0.2/maven-compiler-plugin-2.0.2.jar urls[55] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-compiler-api/1.5.3/plexus-compiler-api-1.5.3.jar urls[56] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-compiler-manager/1.5.3/plexus-compiler-manager-1.5.3.jar urls[57] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-compiler-javac/1.5.3/plexus-compiler-javac-1.5.3.jar urls[58] = file:/home/jesse/.m2/repository/org/jvnet/maven-jellydoc-plugin/maven-jellydoc-plugin/1.3/maven-jellydoc-plugin-1.3.jar urls[59] = file:/home/jesse/.m2/repository/org/jvnet/maven-jellydoc-plugin/jellydoc-annotations/1.3/jellydoc-annotations-1.3.jar urls[60] = file:/home/jesse/.m2/repository/org/jvnet/maven-jellydoc-plugin/taglib-xml-writer/1.3/taglib-xml-writer-1.3.jar urls[61] = file:/home/jesse/.m2/repository/com/sun/xml/txw2/txw2/20090102/txw2-20090102.jar urls[62] = file:/home/jesse/.m2/repository/net/java/dev/textile-j/textile-j/2.2.864/textile-j-2.2.864.jar urls[63] = file:/home/jesse/.m2/repository/org/apache/maven/reporting/maven-reporting-impl/2.0.1/maven-reporting-impl-2.0.1.jar urls[64] = file:/home/jesse/.m2/repository/commons-validator/commons-validator/1.1.4/commons-validator-1.1.4.jar urls[65] = file:/home/jesse/.m2/repository/org/apache/maven/doxia/doxia-core/1.0-alpha-6/doxia-core-1.0-alpha-6.jar urls[66] = file:/home/jesse/.m2/repository/org/apache/maven/doxia/doxia-site-renderer/1.0-alpha-6/doxia-site-renderer-1.0-alpha-6.jar urls[67] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-6/plexus-i18n-1.0-beta-6.jar Number of imports: 10 import: org.codehaus.classworlds.Entry@a6c57a42 import: org.codehaus.classworlds.Entry@12f43f3b import: org.codehaus.classworlds.Entry@20025374 import: org.codehaus.classworlds.Entry@f8e44ca4 import: org.codehaus.classworlds.Entry@92758522 import: org.codehaus.classworlds.Entry@ebf2705b import: org.codehaus.classworlds.Entry@bb25e54 import: org.codehaus.classworlds.Entry@bece5185 import: org.codehaus.classworlds.Entry@3fee8e37 import: org.codehaus.classworlds.Entry@3fee19d8 this realm = plexus.core urls[0] = file:/usr/share/maven-bin-2.2/lib/maven-2.2.1-uber.jar Number of imports: 10 import: org.codehaus.classworlds.Entry@a6c57a42 import: org.codehaus.classworlds.Entry@12f43f3b import: org.codehaus.classworlds.Entry@20025374 import: org.codehaus.classworlds.Entry@f8e44ca4 import: org.codehaus.classworlds.Entry@92758522 import: org.codehaus.classworlds.Entry@ebf2705b import: org.codehaus.classworlds.Entry@bb25e54 import: org.codehaus.classworlds.Entry@bece5185 import: org.codehaus.classworlds.Entry@3fee8e37 import: org.codehaus.classworlds.Entry@3fee19d8 ----------------------------------------------------- [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Internal error in the plugin manager executing goal 'org.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile': Unable to load the mojo 'org.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile' in the plugin 'org.jvnet.hudson.tools:maven-hpi-plugin'. A required class is missing: com.sun.mirror.apt.AnnotationProcessorFactory [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile': Unable to load the mojo 'org.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile' in the plugin 'org.jvnet.hudson.tools:maven-hpi-plugin'. A required class is missing: com.sun.mirror.apt.AnnotationProcessorFactory at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:698) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:1205) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:1038) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:643) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:600) 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: org.apache.maven.plugin.PluginManagerException: Unable to load the mojo 'org.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile' in the plugin 'org.jvnet.hudson.tools:maven-hpi-plugin'. A required class is missing: com.sun.mirror.apt.AnnotationProcessorFactory at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:669) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) ... 21 more Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component 'org.apache.maven.plugin.Mojoorg.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile', it could not be started at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:339) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440) at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:652) ... 23 more Caused by: org.codehaus.plexus.component.repository.exception.ComponentLifecycleException: Error starting component at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:109) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95) at org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331) ... 25 more Caused by: org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionException: Error composing component at org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:33) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101) at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105) ... 28 more Caused by: org.codehaus.plexus.component.composition.CompositionException: Composition failed of field compilerManager in object of type org.jvnet.hudson.maven.plugins.hpi.AptMojo because the requirement ComponentRequirement{role='org.codehaus.plexus.compiler.manager.CompilerManager', roleHint='null', fieldName='compilerManager'} was missing at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:154) at org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73) at org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68) at org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486) at org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29) ... 30 more Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component 'org.codehaus.plexus.compiler.manager.CompilerManager', it could not be started at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:339) at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129) ... 34 more Caused by: org.codehaus.plexus.component.repository.exception.ComponentLifecycleException: Error starting component at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:109) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95) at org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331) ... 35 more Caused by: org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionException: Error composing component at org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:33) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101) at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105) ... 38 more Caused by: org.codehaus.plexus.component.composition.CompositionException: Composition failed of field compilers in object of type org.codehaus.plexus.compiler.manager.DefaultCompilerManager because the requirement ComponentRequirement{role='org.codehaus.plexus.compiler.Compiler', roleHint='null', fieldName='compilers'} was missing at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:154) at org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73) at org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68) at org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486) at org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29) ... 40 more Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component 'org.codehaus.plexus.compiler.Compilerstapler-apt', it could not be created at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:335) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440) at org.codehaus.plexus.DefaultPlexusContainer.lookupMap(DefaultPlexusContainer.java:390) at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:103) ... 44 more Caused by: org.codehaus.plexus.component.factory.ComponentInstantiationException: Could not instanciate component: role: 'org.codehaus.plexus.compiler.Compiler', implementation: 'org.kohsuke.stapler.AptCompiler', role hint: 'stapler-apt' at org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeException(JavaComponentFactory.java:77) at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:62) at org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93) at org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331) ... 47 more Caused by: java.lang.NoClassDefFoundError: com.sun.mirror.apt.AnnotationProcessorFactory at java.lang.J9VMInternals.verifyImpl(Native Method) at java.lang.J9VMInternals.verify(J9VMInternals.java:72) at java.lang.J9VMInternals.initialize(J9VMInternals.java:134) at java.lang.J9VMInternals.newInstanceImpl(Native Method) at java.lang.Class.newInstance(Class.java:1325) at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:44) ... 51 more Caused by: java.lang.ClassNotFoundException: com.sun.mirror.apt.AnnotationProcessorFactory at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:77) at java.net.URLClassLoader.findClass(URLClassLoader.java:385) at java.lang.ClassLoader.loadClass(ClassLoader.java:653) at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:232) 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:619) ... 57 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8 seconds [INFO] Finished at: Wed Jun 02 16:19:07 EDT 2010 [INFO] Final Memory: 54M/166M [INFO] ------------------------------------------------------------------------
    via by jieryn,
  • Class not found exception
    via GitHub by guptanitin15
    ,
  • Recent (1.360+) Hudson seems to depend on apt-maven-plugin and other tools/* which hard code requirements (via import) on com.sun.mirror.apt packages and classes. This excludes all but Sun JDKs from compiling anything in Hudson, including plugins. + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building Unnamed - hudson.plugins:testing:hpi:1.0-SNAPSHOT [INFO] task-segment: [hpi:run] [INFO] ------------------------------------------------------------------------ [INFO] Preparing hpi:run [INFO] [enforcer:display-info {execution: default}] [INFO] Maven Version: 2.2.1 [INFO] JDK Version: 1.6.0 normalized as: 1.6.0 [INFO] OS Info: Arch: amd64 Family: unix Name: linux Version: 2.6.32.14 [INFO] [localizer:generate {execution: default}] [INFO] [resources:resources {execution: default-resources}] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 4 resources ----------------------------------------------------- this realm = app0.child-container[org.jvnet.hudson.tools:maven-hpi-plugin:1.52] urls[0] = file:/home/jesse/.m2/repository/org/jvnet/hudson/tools/maven-hpi-plugin/1.52/maven-hpi-plugin-1.52.jar urls[1] = file:/home/jesse/.m2/repository/org/apache/maven/maven-archiver/2.0.1/maven-archiver-2.0.1.jar urls[2] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.jar urls[3] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-4/plexus-archiver-1.0-alpha-4.jar urls[4] = file:/home/jesse/.m2/repository/org/mortbay/jetty/maven-jetty-plugin/6.1.1/maven-jetty-plugin-6.1.1.jar urls[5] = file:/home/jesse/.m2/repository/commons-el/commons-el/1.0/commons-el-1.0.jar urls[6] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jetty/6.1.1/jetty-6.1.1.jar urls[7] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jetty-util/6.1.1/jetty-util-6.1.1.jar urls[8] = file:/home/jesse/.m2/repository/org/mortbay/jetty/servlet-api-2.5/6.1.1/servlet-api-2.5-6.1.1.jar urls[9] = file:/home/jesse/.m2/repository/org/apache/maven/maven-plugin-tools-api/2.0/maven-plugin-tools-api-2.0.jar urls[10] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jetty-plus/6.1.1/jetty-plus-6.1.1.jar urls[11] = file:/home/jesse/.m2/repository/javax/mail/mail/1.4/mail-1.4.jar urls[12] = file:/home/jesse/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar urls[13] = file:/home/jesse/.m2/repository/geronimo-spec/geronimo-spec-jta/1.0.1B-rc4/geronimo-spec-jta-1.0.1B-rc4.jar urls[14] = file:/home/jesse/.m2/repository/ant/ant/1.6.5/ant-1.6.5.jar urls[15] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jetty-naming/6.1.1/jetty-naming-6.1.1.jar urls[16] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jetty-management/6.1.1/jetty-management-6.1.1.jar urls[17] = file:/home/jesse/.m2/repository/mx4j/mx4j/3.0.1/mx4j-3.0.1.jar urls[18] = file:/home/jesse/.m2/repository/mx4j/mx4j-tools/3.0.1/mx4j-tools-3.0.1.jar urls[19] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jsp-2.1/6.1.1/jsp-2.1-6.1.1.jar urls[20] = file:/home/jesse/.m2/repository/org/eclipse/jdt/core/3.1.1/core-3.1.1.jar urls[21] = file:/home/jesse/.m2/repository/org/mortbay/jetty/jsp-api-2.1/6.1.1/jsp-api-2.1-6.1.1.jar urls[22] = file:/home/jesse/.m2/repository/org/apache/maven/plugins/maven-archetype-plugin/1.0-alpha-4/maven-archetype-plugin-1.0-alpha-4.jar urls[23] = file:/home/jesse/.m2/repository/org/apache/maven/archetype/maven-archetype-core/1.0-alpha-4/maven-archetype-core-1.0-alpha-4.jar urls[24] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.2/plexus-velocity-1.1.2.jar urls[25] = file:/home/jesse/.m2/repository/commons-collections/commons-collections/2.0/commons-collections-2.0.jar urls[26] = file:/home/jesse/.m2/repository/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar urls[27] = file:/home/jesse/.m2/repository/velocity/velocity/1.4/velocity-1.4.jar urls[28] = file:/home/jesse/.m2/repository/velocity/velocity-dep/1.4/velocity-dep-1.4.jar urls[29] = file:/home/jesse/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar urls[30] = file:/home/jesse/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar urls[31] = file:/home/jesse/.m2/repository/org/apache/maven/archetype/maven-archetype-creator/1.0-alpha-4/maven-archetype-creator-1.0-alpha-4.jar urls[32] = file:/home/jesse/.m2/repository/org/apache/maven/archetype/maven-archetype-model/1.0-alpha-4/maven-archetype-model-1.0-alpha-4.jar urls[33] = file:/home/jesse/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar urls[34] = file:/home/jesse/.m2/repository/javanettasks/javanettasks/1.0.24/javanettasks-1.0.24.jar urls[35] = file:/home/jesse/.m2/repository/nekohtml/nekohtml/0.9.5/nekohtml-0.9.5.jar urls[36] = file:/home/jesse/.m2/repository/xerces/xercesImpl/2.2.1/xercesImpl-2.2.1.jar urls[37] = file:/home/jesse/.m2/repository/javanettasks/httpunit/1.5.4/httpunit-1.5.4.jar urls[38] = file:/home/jesse/.m2/repository/javax/servlet/servlet-api/2.3/servlet-api-2.3.jar urls[39] = file:/home/jesse/.m2/repository/jtidy/jtidy/4aug2000r7-dev/jtidy-4aug2000r7-dev.jar urls[40] = file:/home/jesse/.m2/repository/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar urls[41] = file:/home/jesse/.m2/repository/org/kohsuke/stapler/maven-stapler-plugin/1.12/maven-stapler-plugin-1.12.jar urls[42] = file:/home/jesse/.m2/repository/org/kohsuke/stapler/stapler/1.100/stapler-1.100.jar urls[43] = file:/home/jesse/.m2/repository/commons-discovery/commons-discovery/0.4/commons-discovery-0.4.jar urls[44] = file:/home/jesse/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar urls[45] = file:/home/jesse/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar urls[46] = file:/home/jesse/.m2/repository/commons-io/commons-io/1.3.1/commons-io-1.3.1.jar urls[47] = file:/home/jesse/.m2/repository/org/jvnet/localizer/localizer/1.7/localizer-1.7.jar urls[48] = file:/home/jesse/.m2/repository/org/kohsuke/stapler/json-lib/2.1/json-lib-2.1-jdk15.jar urls[49] = file:/home/jesse/.m2/repository/commons-lang/commons-lang/2.3/commons-lang-2.3.jar urls[50] = file:/home/jesse/.m2/repository/net/sf/ezmorph/ezmorph/1.0.3/ezmorph-1.0.3.jar urls[51] = file:/home/jesse/.m2/repository/org/jvnet/tiger-types/1.1/tiger-types-1.1.jar urls[52] = file:/home/jesse/.m2/repository/commons-fileupload/commons-fileupload/1.2.1/commons-fileupload-1.2.1.jar urls[53] = file:/home/jesse/.m2/repository/qdox/qdox/1.6.1/qdox-1.6.1.jar urls[54] = file:/home/jesse/.m2/repository/org/apache/maven/plugins/maven-compiler-plugin/2.0.2/maven-compiler-plugin-2.0.2.jar urls[55] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-compiler-api/1.5.3/plexus-compiler-api-1.5.3.jar urls[56] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-compiler-manager/1.5.3/plexus-compiler-manager-1.5.3.jar urls[57] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-compiler-javac/1.5.3/plexus-compiler-javac-1.5.3.jar urls[58] = file:/home/jesse/.m2/repository/org/jvnet/maven-jellydoc-plugin/maven-jellydoc-plugin/1.3/maven-jellydoc-plugin-1.3.jar urls[59] = file:/home/jesse/.m2/repository/org/jvnet/maven-jellydoc-plugin/jellydoc-annotations/1.3/jellydoc-annotations-1.3.jar urls[60] = file:/home/jesse/.m2/repository/org/jvnet/maven-jellydoc-plugin/taglib-xml-writer/1.3/taglib-xml-writer-1.3.jar urls[61] = file:/home/jesse/.m2/repository/com/sun/xml/txw2/txw2/20090102/txw2-20090102.jar urls[62] = file:/home/jesse/.m2/repository/net/java/dev/textile-j/textile-j/2.2.864/textile-j-2.2.864.jar urls[63] = file:/home/jesse/.m2/repository/org/apache/maven/reporting/maven-reporting-impl/2.0.1/maven-reporting-impl-2.0.1.jar urls[64] = file:/home/jesse/.m2/repository/commons-validator/commons-validator/1.1.4/commons-validator-1.1.4.jar urls[65] = file:/home/jesse/.m2/repository/org/apache/maven/doxia/doxia-core/1.0-alpha-6/doxia-core-1.0-alpha-6.jar urls[66] = file:/home/jesse/.m2/repository/org/apache/maven/doxia/doxia-site-renderer/1.0-alpha-6/doxia-site-renderer-1.0-alpha-6.jar urls[67] = file:/home/jesse/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-6/plexus-i18n-1.0-beta-6.jar Number of imports: 10 import: org.codehaus.classworlds.Entry@a6c57a42 import: org.codehaus.classworlds.Entry@12f43f3b import: org.codehaus.classworlds.Entry@20025374 import: org.codehaus.classworlds.Entry@f8e44ca4 import: org.codehaus.classworlds.Entry@92758522 import: org.codehaus.classworlds.Entry@ebf2705b import: org.codehaus.classworlds.Entry@bb25e54 import: org.codehaus.classworlds.Entry@bece5185 import: org.codehaus.classworlds.Entry@3fee8e37 import: org.codehaus.classworlds.Entry@3fee19d8 this realm = plexus.core urls[0] = file:/usr/share/maven-bin-2.2/lib/maven-2.2.1-uber.jar Number of imports: 10 import: org.codehaus.classworlds.Entry@a6c57a42 import: org.codehaus.classworlds.Entry@12f43f3b import: org.codehaus.classworlds.Entry@20025374 import: org.codehaus.classworlds.Entry@f8e44ca4 import: org.codehaus.classworlds.Entry@92758522 import: org.codehaus.classworlds.Entry@ebf2705b import: org.codehaus.classworlds.Entry@bb25e54 import: org.codehaus.classworlds.Entry@bece5185 import: org.codehaus.classworlds.Entry@3fee8e37 import: org.codehaus.classworlds.Entry@3fee19d8 ----------------------------------------------------- [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Internal error in the plugin manager executing goal 'org.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile': Unable to load the mojo 'org.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile' in the plugin 'org.jvnet.hudson.tools:maven-hpi-plugin'. A required class is missing: com.sun.mirror.apt.AnnotationProcessorFactory [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile': Unable to load the mojo 'org.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile' in the plugin 'org.jvnet.hudson.tools:maven-hpi-plugin'. A required class is missing: com.sun.mirror.apt.AnnotationProcessorFactory at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:698) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:1205) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:1038) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:643) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:600) 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: org.apache.maven.plugin.PluginManagerException: Unable to load the mojo 'org.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile' in the plugin 'org.jvnet.hudson.tools:maven-hpi-plugin'. A required class is missing: com.sun.mirror.apt.AnnotationProcessorFactory at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:669) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) ... 21 more Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component 'org.apache.maven.plugin.Mojoorg.jvnet.hudson.tools:maven-hpi-plugin:1.52:apt-compile', it could not be started at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:339) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440) at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:652) ... 23 more Caused by: org.codehaus.plexus.component.repository.exception.ComponentLifecycleException: Error starting component at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:109) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95) at org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331) ... 25 more Caused by: org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionException: Error composing component at org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:33) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101) at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105) ... 28 more Caused by: org.codehaus.plexus.component.composition.CompositionException: Composition failed of field compilerManager in object of type org.jvnet.hudson.maven.plugins.hpi.AptMojo because the requirement ComponentRequirement{role='org.codehaus.plexus.compiler.manager.CompilerManager', roleHint='null', fieldName='compilerManager'} was missing at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:154) at org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73) at org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68) at org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486) at org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29) ... 30 more Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component 'org.codehaus.plexus.compiler.manager.CompilerManager', it could not be started at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:339) at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129) ... 34 more Caused by: org.codehaus.plexus.component.repository.exception.ComponentLifecycleException: Error starting component at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:109) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95) at org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331) ... 35 more Caused by: org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionException: Error composing component at org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:33) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101) at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105) ... 38 more Caused by: org.codehaus.plexus.component.composition.CompositionException: Composition failed of field compilers in object of type org.codehaus.plexus.compiler.manager.DefaultCompilerManager because the requirement ComponentRequirement{role='org.codehaus.plexus.compiler.Compiler', roleHint='null', fieldName='compilers'} was missing at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:154) at org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73) at org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68) at org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486) at org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29) ... 40 more Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component 'org.codehaus.plexus.compiler.Compilerstapler-apt', it could not be created at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:335) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440) at org.codehaus.plexus.DefaultPlexusContainer.lookupMap(DefaultPlexusContainer.java:390) at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:103) ... 44 more Caused by: org.codehaus.plexus.component.factory.ComponentInstantiationException: Could not instanciate component: role: 'org.codehaus.plexus.compiler.Compiler', implementation: 'org.kohsuke.stapler.AptCompiler', role hint: 'stapler-apt' at org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeException(JavaComponentFactory.java:77) at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:62) at org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93) at org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331) ... 47 more Caused by: java.lang.NoClassDefFoundError: com.sun.mirror.apt.AnnotationProcessorFactory at java.lang.J9VMInternals.verifyImpl(Native Method) at java.lang.J9VMInternals.verify(J9VMInternals.java:72) at java.lang.J9VMInternals.initialize(J9VMInternals.java:134) at java.lang.J9VMInternals.newInstanceImpl(Native Method) at java.lang.Class.newInstance(Class.java:1325) at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:44) ... 51 more Caused by: java.lang.ClassNotFoundException: com.sun.mirror.apt.AnnotationProcessorFactory at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:77) at java.net.URLClassLoader.findClass(URLClassLoader.java:385) at java.lang.ClassLoader.loadClass(ClassLoader.java:653) at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:232) 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:619) ... 57 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8 seconds [INFO] Finished at: Wed Jun 02 16:19:07 EDT 2010 [INFO] Final Memory: 54M/166M [INFO] ------------------------------------------------------------------------
    via by jieryn,
  • Error while Deploying application in glassfish
    via by lfcarloska,
  • Exception when deploying WAR (Web Services App)
    via by infectedrhythms,
    • org.apache.maven.surefire.util.SurefireReflectionException: org.sonar.java.jacoco.JacocoController$JacocoControllerError: Unable to access JaCoCo Agent - make sure that you use JaCoCo and version not lower than 0.6.2. at org.apache.maven.surefire.util.ReflectionUtils.instantiateOneArg(ReflectionUtils.java:135) at org.apache.maven.surefire.booter.ForkedBooter.createProviderInCurrentClassloader(ForkedBooter.java:321) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121) Caused by: org.sonar.java.jacoco.JacocoController$JacocoControllerError: Unable to access JaCoCo Agent - make sure that you use JaCoCo and version not lower than 0.6.2. at org.sonar.java.jacoco.JacocoController.<init>(JacocoController.java:48) at org.sonar.java.jacoco.JacocoController.getInstance(JacocoController.java:39) at org.sonar.java.jacoco.JUnitListener.<init>(JUnitListener.java:33) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at java.lang.Class.newInstance(Class.java:383) at org.apache.maven.surefire.util.ReflectionUtils.instantiate(ReflectionUtils.java:112) at org.apache.maven.surefire.common.junit4.JUnit4RunListenerFactory.createCustomListeners(JUnit4RunListenerFactory.java:45) at org.apache.maven.surefire.junit4.JUnit4Provider.<init>(JUnit4Provider.java:110) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.apache.maven.surefire.util.ReflectionUtils.instantiateOneArg(ReflectionUtils.java:131) ... 4 more Caused by: java.lang.NoClassDefFoundError: org/jacoco/agent/rt/RT at org.sonar.java.jacoco.JacocoController.<init>(JacocoController.java:46) ... 19 more Caused by: java.lang.ClassNotFoundException: org.jacoco.agent.rt.RT at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 20 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Matty
    1 times, last one,
    Dunmer
    2 times, last one,
    Unknown visitor1 times, last one,
    2285 more bugmates