Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

I upgraded Build tool kit from 6.0.1 to 6.0.3 .But unable to process the builds successfully

Hi,
I recently upgraded Build tool kit from 6.0.1 to 6.0.3 .But unable to process the builds successfully.Its throwing the following error:
BUILD FAILED
/opt/MAPworkspace70Nightly/buildtools/build.xml:905: java.lang.NoClassDefFoundError: fr/jayasoft/ivy/DependencyResolver
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2595)
    at java.lang.Class.getConstructor0(Class.java:2895)
    at java.lang.Class.getConstructor(Class.java:1731)
    at org.apache.tools.ant.ComponentHelper.checkTaskClass(ComponentHelper.java:376)
    at org.apache.tools.ant.ComponentHelper.addTaskDefinition(ComponentHelper.java:341)
    at org.apache.tools.ant.Project.addTaskDefinition(Project.java:968)
    at net.sf.antcontrib.logic.AntCallBack.initializeProject(AntCallBack.java:208)
    at net.sf.antcontrib.logic.AntCallBack.execute(AntCallBack.java:303)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    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:1393)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
    at org.apache.tools.ant.Main.runBuild(Main.java:851)
    at org.apache.tools.ant.Main.startAnt(Main.java:235)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.lang.ClassNotFoundException: fr.jayasoft.ivy.DependencyResolver
    at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1374)
    at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1323)
    at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1076)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    ... 25 more
Total time: 4 seconds
Build failed. Exit value was 1.
2019-03-27 08:28:05 [Jazz build engine] Invoking post-build participant "com.ibm.team.build.junit.publishing"
java.io.IOException: CRRTC3519E: The file or directory that was specified for JUnit publishing was not found: /opt/MAPworkspace70Nightly/reports/surefire-reports.
    at com.ibm.team.build.internal.engine.JUnitPublishingPostBuildParticipant.postBuild(JUnitPublishingPostBuildParticipant.java:70)
    at com.ibm.team.build.internal.engine.BuildLoop.invokePostBuildParticipants(BuildLoop.java:1183)
    at com.ibm.team.build.internal.engine.BuildLoop$4.run(BuildLoop.java:900)
    at java.lang.Thread.run(Thread.java:745)

all my builds are failing with same error. Can any one suggest any configuration needed for jbe upgrade process.

Below are the versions i am using currently to my infrastructure.
jdk 1.7.0_85
ant-version:1.9.4
RTC buildtool kit -6.0.3

0 votes

Comments
What task is getting invoked at line 905 in your build.xml? Is it a Jazz buildtoolkit task or something else?
>>Java.io.IOException: CRRTC3519E: The file or directory that was specified for JUnit publishing was not found: /opt/MAPworkspace70Nightly/reports/surefire-reports.
This could be because of the previous error.

Hi Lakshmi,
While choosing remote windows  build machine, its failing.
The following code snippet at line 905 in build.xml file is:
 <antcallback dir="remote-ant" antfile="remote-ant-choose-machine.xml" target="random-machine-script" return="remoteWin.machine" />

    <antcallback target="rtc-start-build-activity" return="pick-remote-win-server.activityId" >
      <param name="activityIdProperty" value="pick-remote-win-server.activityId" />
      <param name="label" value="Found available remote Windows server: ${remoteWin.machine}" />
    </antcallback>

As if now i am thinking  its an ant task . Can you help me with this?

If the following is line 905.
 <antcallback dir="remote-ant" antfile="remote-ant-choose-machine.xml" target="random-machine-script" return="remoteWin.machine" />

and going by this strack trace,
....
....
at org.apache.tools.ant.ComponentHelper.checkTaskClass(ComponentHelper.java:376)

    at org.apache.tools.ant.ComponentHelper.addTaskDefinition(ComponentHelper.java:341)
    at org.apache.tools.ant.Project.addTaskDefinition(Project.java:968)
    at net.sf.antcontrib.logic.AntCallBack.initializeProject(AntCallBack.java:208)

    at net.sf.antcontrib.logic.AntCallBack.execute(AntCallBack.java:303)
You have a taskdef in remote-ant-choose-machine.xml file that needs ivy jar.

Could you check the following?
What tasks are declared in that xml file and if any of them need ivy?
Do you use JBE ant build definition for your builds?

Yes i use JBE ant build definitions for my builds.I tried downloading that missing jar and placed it in /ant/lib folder .But the build is failing again with following error:
BUILD FAILED
/opt/MAPworkspace70Nightly/buildtools/build.xml:905: Target "random-machine-script" does not exist in the project "rtc-build".

Total time: 5 seconds
Build failed. Exit value was 1.
2019-04-01 11:36:01 [Jazz build engine] Invoking post-build participant "com.ibm.team.build.junit.publishing"
java.io.IOException: CRRTC3519E: The file or directory that was specified for JUnit publishing was not found: /opt/MAPworkspace70Nightly/reports/surefire-reports.
    at com.ibm.team.build.internal.engine.JUnitPublishingPostBuildParticipant.postBuild(JUnitPublishingPostBuildParticipant.java:70)
    at com.ibm.team.build.internal.engine.BuildLoop.invokePostBuildParticipants(BuildLoop.java:1183)
    at com.ibm.team.build.internal.engine.BuildLoop$4.run(BuildLoop.java:900)
    at java.lang.Thread.run(Thread.java:745)

I think the file has been parsed properly, so no more ivy errors. Looks like the build file does not contain the target random-machine-script. Can you check whether this line exists in the file remote-ant-choose-machine.xml in the build machine where the build workspace got loaded?


<target name="random-machine-script"....

yes its there:
<target name="random-machine-script">
    <!--       
        <random-machine-script />
    -->
    <random-machine-nodejs />

  </target>

Also, could  you check whether this target is declared under the project rtc-build? There should be lines like the following but note the nesting.
<project name="rtc-build">
...
...
<target name="random-machine-script">
...
</target>
.....
</project>


showing 5 of 7 show 2 more comments


2 answers

Permanent link

I don't see how the Build Toolkit should have anything to do with this error. Maybe you changed more than just the Toolkit? Switch back to the old build toolkit, nothing else, does that work? 


The Error seems to be related to IVY. 

Does IVY run alone?

Make sure you have a compatible ant and JAVA JDK installed, see.

0 votes

Comments
The default ant given by buildtool kit is 1.9.4
minimum requirement of java is 1.7 and i am using 1.7.0_85.
Is there any thing else can i proceed with .

Do i need to change any thing in jbe.ini file

To do what? 

jbe.ini file
--launcher.suppressErrors
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Dcom.ibm.team.filesystem.client.disable.fslistener=true

Do i need to change -Dosgi.requiredJavaVersion ?  from 1.6 to 1.7

No, but you can set a VM there. I would suggest to make sure you have a correct Java in the path. 

Hi Ralph,
When i roll back to old build toolkit 6.0.1 and ant 1.9.4 builds are running successfully.

showing 5 of 6 show 1 more comments

Permanent link

 At this point, I would suggest to contact IBM support and open a case.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,122

Question asked: Mar 27 '19, 4:32 a.m.

Question was seen: 2,003 times

Last updated: Apr 10 '19, 6:00 a.m.

Confirmation Cancel Confirm