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

Error during build on slave

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: remoting
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      After a successful build, on a JNLP slave, the following error is logged, and
      the build is marked failed, even though it succeeded. I found
      org.apache.tools.ant.types.ResourceCollection was part of ant 1.7.0 which is the
      version of ant we're using on both master and slave side.

      BUILD SUCCESSFUL

      Total time: 6 seconds

      FATAL:
      org.apache.tools.ant.taskdefs.Untar.add(Lorg/apache/tools/ant/types/ResourceCollection;)V

      java.lang.NoSuchMethodError:
      org.apache.tools.ant.taskdefs.Untar.add(Lorg/apache/tools/ant/types/ResourceCollection;)V

      at hudson.FilePath.readFromTar(FilePath.java:741)

      at hudson.FilePath.copyRecursiveTo(FilePath.java:678)

      at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:65)

      at hudson.model.Build$RunnerImpl.post(Build.java:151)

      at hudson.model.Run.run(Run.java:557)

      at hudson.model.Build.run(Build.java:115)

      at hudson.model.Executor.run(Executor.java:61)

        Attachments

          Activity

          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          What container do you use? It appears that your container is loading earlier
          version of Ant from somewhere else.

          Please go to the scripting console and type "print
          hudson.remoting.Which.jarFile(org.apache.tools.ant.taskdefs.Untar.class)" to
          find out where you are loading the ant classes from.

          Show
          kohsuke Kohsuke Kawaguchi added a comment - What container do you use? It appears that your container is loading earlier version of Ant from somewhere else. Please go to the scripting console and type "print hudson.remoting.Which.jarFile(org.apache.tools.ant.taskdefs.Untar.class)" to find out where you are loading the ant classes from.
          Hide
          loweryr loweryr added a comment -

          Yep, glassfish... loading it's own copy of ant.jar.

          Show
          loweryr loweryr added a comment - Yep, glassfish... loading it's own copy of ant.jar.
          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          Fixed in 1.103 by adding sun-web.xml. If you can try the snapshot build, that
          would be great.

          Show
          kohsuke Kohsuke Kawaguchi added a comment - Fixed in 1.103 by adding sun-web.xml. If you can try the snapshot build, that would be great.
          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          Adding a keyword.

          Show
          kohsuke Kohsuke Kawaguchi added a comment - Adding a keyword.
          Hide
          loweryr loweryr added a comment -

          Works great... Thanks!

          Show
          loweryr loweryr added a comment - Works great... Thanks!
          Hide
          loweryr loweryr added a comment -

          Tested, and functioning as expected.

          Show
          loweryr loweryr added a comment - Tested, and functioning as expected.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            loweryr loweryr
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: