• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • remoting
    • None
    • Platform: All, OS: All

      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)

          [JENKINS-458] Error during build on slave

          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.

          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.

          loweryr added a comment -

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

          loweryr added a comment - Yep, glassfish... loading it's own copy of ant.jar.

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

          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.

          Adding a keyword.

          Kohsuke Kawaguchi added a comment - Adding a keyword.

          loweryr added a comment -

          Works great... Thanks!

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

          loweryr added a comment -

          Tested, and functioning as expected.

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

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

              Created:
              Updated:
              Resolved: