This works well when running 'ant run' manually on the server that I want to execute the build on. But when I try to run it with the build engine I get this error.
2016-07-12 13:16:39 [Jazz build engine]
2016-07-12 13:16:39 [Jazz build engine] Substituted the following build property variables:
2016-07-12 13:16:39 [Jazz build engine] team.scm.fetchDestination = ${build_dir} --> team.scm.fetchDestination = ${homedir}/hello
2016-07-12 13:16:39 [Jazz build engine] buildfile = ${build_dir}/Tools/builds/hello_world/build.xml --> buildfile = ${homedir}/hello/Tools/builds/hello_world/build.xml
2016-07-12 13:16:39 [Jazz build engine] build_dir = ${homedir}/hello --> build_dir = /home/builduser/workspace_tools-dev6-build01/hello
2016-07-12 13:16:39 [Jazz build engine] team.scm.fetchDestination = ${homedir}/hello --> team.scm.fetchDestination = /home/builduser/workspace_tools-dev6-build01/hello
2016-07-12 13:16:39 [Jazz build engine] buildfile = ${homedir}/hello/Tools/builds/hello_world/build.xml --> buildfile = /home/builduser/workspace_tools-dev6-build01/hello/Tools/builds/hello_world/build.xml
2016-07-12 13:16:39 [Jazz build engine]
2016-07-12 13:16:39 [Jazz build engine]
2016-07-12 13:16:39 [Jazz build engine] Substituted the following configuration element property variables:
2016-07-12 13:16:39 [Jazz build engine] com.ibm.team.build.ant : com.ibm.team.build.ant.buildFile = ${buildfile} --> com.ibm.team.build.ant.buildFile = /home/builduser/workspace_tools-dev6-build01/hello/Tools/builds/hello_world/build.xml
2016-07-12 13:16:39 [Jazz build engine]
2016-07-12 13:16:39 [Jazz build engine] running on host: ***CENSORED***
2016-07-12 13:16:39 [Jazz build engine] Should build occur?
2016-07-12 13:16:39 [Jazz build engine] Yes: Always build a user initiated request.
2016-07-12 13:16:39 [Jazz build engine] Invoking pre-build participant "com.ibm.team.build.jazzscm"
2016-07-12 13:16:39 [Jazz build engine] Deleting fetch destination "/home/builduser/workspace_tools-dev6-build01/hello" before fetching ...
2016-07-12 13:16:39 [Jazz build engine] Fetching files to fetch destination "/home/builduser/workspace_tools-dev6-build01/hello" ...
2016-07-12 13:16:42 [Jazz build engine] Invoking build participant "com.ibm.team.build.ant"
Buildfile: /home/builduser/workspace_tools-dev6-build01/hello/Tools/builds/hello_world/build.xml
hello:
BUILD FAILED
java.lang.NoSuchMethodError: org/apache/tools/ant/launch/Locator.fromJarURI(Ljava/lang/String;)Ljava/lang/String;
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:256)
at org.apache.tools.ant.helper.ProjectHelper2.parseUnknownElement(ProjectHelper2.java:131)
at org.apache.tools.ant.helper.ProjectHelper2.parseAntlibDescriptor(ProjectHelper2.java:111)
at org.apache.tools.ant.taskdefs.Antlib.createAntlib(Antlib.java:94)
at org.apache.tools.ant.taskdefs.Definer.loadAntlib(Definer.java:425)
at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:277)
at org.apache.tools.ant.ComponentHelper.checkNamespace(ComponentHelper.java:874)
at org.apache.tools.ant.ComponentHelper.getDefinition(ComponentHelper.java:307)
at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:284)
at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:263)
at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:430)
at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:164)
at org.apache.tools.ant.Task.perform(Task.java:347)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.Main.runBuild(Main.java:853)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Total time: 0 seconds
Build failed. Exit value was 1.
When I google for it it seems that there is some problem with NetBeans and Java that usually causes this. But I'm not using NetBeans not Java (except for ant which I'm guessing is written in Java). Does anyone have any idea why this might happen?
Is the build using some other version of ant? If so, is it possible to change it to use the version that is on the server?