java.lang.NoClassDefFoundError: org/codehaus/plexus/classworlds/realm/ClassRealm

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

  • Env: Jenkins 2.10 and JAP 2.5.0 Reproduction: Try to build the maven example project *with* post build deployment step, the job will quit and throw this exception the attached stack trace. {code}Started by user anonymous Building in workspace /home/andreik/.jenkins/jobs/Maven tester/workspace FATAL: org/codehaus/plexus/classworlds/realm/ClassRealm java.lang.NoClassDefFoundError: org/codehaus/plexus/classworlds/realm/ClassRealm at org.jfrog.hudson.maven3.MavenVersionCallable.call(MavenVersionCallable.java:45) at org.jfrog.hudson.maven3.MavenVersionCallable.call(MavenVersionCallable.java:33) at hudson.FilePath.act(FilePath.java:1105) at org.jfrog.hudson.util.MavenVersionHelper.isAtLeast(MavenVersionHelper.java:109) at org.jfrog.hudson.util.MavenVersionHelper.isAtLeastVersion(MavenVersionHelper.java:81) at org.jfrog.hudson.util.MavenVersionHelper.isAtLeastResolutionCapableVersion(MavenVersionHelper.java:72) at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.isMavenVersionValid(MavenExtractorEnvironment.java:165) at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:100) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:931) at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:165) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:620) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1720) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.classworlds.realm.ClassRealm at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376) at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326) at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 17 more Finished: FAILURE{code}
    via by Andrei Komarov,
  • Env: Jenkins 2.10 and JAP 2.5.0 Reproduction: Try to build the maven example project *with* post build deployment step, the job will quit and throw this exception the attached stack trace. {code}Started by user anonymous Building in workspace /home/andreik/.jenkins/jobs/Maven tester/workspace FATAL: org/codehaus/plexus/classworlds/realm/ClassRealm java.lang.NoClassDefFoundError: org/codehaus/plexus/classworlds/realm/ClassRealm at org.jfrog.hudson.maven3.MavenVersionCallable.call(MavenVersionCallable.java:45) at org.jfrog.hudson.maven3.MavenVersionCallable.call(MavenVersionCallable.java:33) at hudson.FilePath.act(FilePath.java:1105) at org.jfrog.hudson.util.MavenVersionHelper.isAtLeast(MavenVersionHelper.java:109) at org.jfrog.hudson.util.MavenVersionHelper.isAtLeastVersion(MavenVersionHelper.java:81) at org.jfrog.hudson.util.MavenVersionHelper.isAtLeastResolutionCapableVersion(MavenVersionHelper.java:72) at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.isMavenVersionValid(MavenExtractorEnvironment.java:165) at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:100) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:931) at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:165) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:620) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1720) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.classworlds.realm.ClassRealm at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376) at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326) at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 17 more Finished: FAILURE{code}
    via by Andrei Komarov,
  • An error is thrown while trying to import the .TRX file. It looks like the import should be "java/nio/charset/StandardCharset" rather then "java/nio/charset/StandardCharsets"? ERROR: Publisher hudson.plugins.mstest.MSTestPublisher aborted due to exception java.lang.NoClassDefFoundError: java/nio/charset/StandardCharsets at hudson.plugins.mstest.ContentCorrector.fix(ContentCorrector.java:27) at hudson.plugins.mstest.MSTestTransformer.invoke(MSTestTransformer.java:73) at hudson.plugins.mstest.MSTestTransformer.invoke(MSTestTransformer.java:23) at hudson.FilePath.act(FilePath.java:989) at hudson.FilePath.act(FilePath.java:967) at hudson.plugins.mstest.MSTestPublisher.perform(MSTestPublisher.java:120) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) Caused by: java.lang.ClassNotFoundException: java.nio.charset.StandardCharsets at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1375) at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1325) at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1078) at java.lang.ClassLoader.loadClass(Unknown Source) ... 15 more
    via by Libero Scarcelli,
  • An error is thrown while trying to import the .TRX file. It looks like the import should be "java/nio/charset/StandardCharset" rather then "java/nio/charset/StandardCharsets"? ERROR: Publisher hudson.plugins.mstest.MSTestPublisher aborted due to exception java.lang.NoClassDefFoundError: java/nio/charset/StandardCharsets at hudson.plugins.mstest.ContentCorrector.fix(ContentCorrector.java:27) at hudson.plugins.mstest.MSTestTransformer.invoke(MSTestTransformer.java:73) at hudson.plugins.mstest.MSTestTransformer.invoke(MSTestTransformer.java:23) at hudson.FilePath.act(FilePath.java:989) at hudson.FilePath.act(FilePath.java:967) at hudson.plugins.mstest.MSTestPublisher.perform(MSTestPublisher.java:120) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) Caused by: java.lang.ClassNotFoundException: java.nio.charset.StandardCharsets at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1375) at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1325) at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1078) at java.lang.ClassLoader.loadClass(Unknown Source) ... 15 more
    via by Libero Scarcelli,
    • java.lang.NoClassDefFoundError: org/codehaus/plexus/classworlds/realm/ClassRealm at org.jfrog.hudson.maven3.MavenVersionCallable.call(MavenVersionCallable.java:45) at org.jfrog.hudson.maven3.MavenVersionCallable.call(MavenVersionCallable.java:33) at hudson.FilePath.act(FilePath.java:1105) at org.jfrog.hudson.util.MavenVersionHelper.isAtLeast(MavenVersionHelper.java:109) at org.jfrog.hudson.util.MavenVersionHelper.isAtLeastVersion(MavenVersionHelper.java:81) at org.jfrog.hudson.util.MavenVersionHelper.isAtLeastResolutionCapableVersion(MavenVersionHelper.java:72) at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.isMavenVersionValid(MavenExtractorEnvironment.java:165) at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:100) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:931) at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:165) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:620) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1720) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.classworlds.realm.ClassRealm at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376) at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326) at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    davidvanlaatum
    davidvanlaatum1 times, last one,
    Unknown visitor1 times, last one,
    22 more bugmates