Uploaded image for project: 'Jenkins Artifactory Plug-in'
  1. Jenkins Artifactory Plug-in
  2. HAP-771

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.5.0
    • Fix Version/s: 2.5.1
    • Component/s: None
    • Labels:
      None

      Description

      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.

      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

        Attachments

          Activity

            People

            • Assignee:
              romang Roman Gurevitch (Inactive)
              Reporter:
              andreik Andrei Komarov
            • Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: