Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-10238

Jenkins slave throws "Classloading from system classloader disabled" exception

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • maven-plugin
    • None
    • Master on AIX 5.3; slave on Windows 2008(R2)

      When running a Maven2 job on a slave instance, I get the following message (complete stack trace attached): "java.lang.ClassNotFoundException: Classloading from system classloader disabled". This happens with the first job after the slave instance is started (it's running as a Windows service). After that, I get a "java.lang.NoClassDefFoundError: Could not initialize class hudson.maven.MavenModuleSetBuild" error.
      If I create a freestyle job, and include the maven command as a batch command to run on the slave, it works fine. The Maven2 job appears to locate Maven on the slave machine, but it apparently can't find the maven-plugin (probably due to the classloading error).

          [JENKINS-10238] Jenkins slave throws "Classloading from system classloader disabled" exception

          Glenn Mayer created issue -
          Marco Rothe made changes -
          Affects Version/s New: current [ 10162 ]
          Christopher Orr made changes -
          Assignee New: Kohsuke Kawaguchi [ kohsuke ]
          Kohsuke Kawaguchi made changes -
          Link New: This issue is duplicated by JENKINS-11088 [ JENKINS-11088 ]
          Jenkins IRC Bot made changes -
          Component/s New: maven-plugin [ 16033 ]
          Component/s Original: maven2 [ 15487 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 140426 ] New: JNJira + In-Review [ 175273 ]
          Jesse Glick made changes -
          Remote Link New: This issue links to "remoting PR 309 (Web Link)" [ 22071 ]

            kohsuke Kohsuke Kawaguchi
            glenn_m Glenn Mayer
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: