It's all about the answers!

Ask a question

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


dinesh naidu (113) | asked Mar 27 '19, 4:32 a.m.
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

Comments
Lakshmi Narasimhan T V commented Apr 01 '19, 2:30 a.m.
JAZZ DEVELOPER
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.

dinesh naidu commented Apr 01 '19, 2:39 a.m.
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?

Lakshmi Narasimhan T V commented Apr 01 '19, 4:22 a.m.
JAZZ DEVELOPER
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?


dinesh naidu commented Apr 01 '19, 6:48 a.m.
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)


Lakshmi Narasimhan T V commented Apr 01 '19, 9:20 a.m.
JAZZ DEVELOPER

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"....


dinesh naidu commented Apr 01 '19, 9:57 a.m.
yes its there:
<target name="random-machine-script">
    <!--       
        <random-machine-script />
    -->
    <random-machine-nodejs />

  </target>

Lakshmi Narasimhan T V commented Apr 02 '19, 2:00 a.m.
JAZZ DEVELOPER
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
Ralph Schoon (63.1k33645) | answered Apr 10 '19, 6:00 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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


permanent link
Ralph Schoon (63.1k33645) | answered Mar 27 '19, 4:46 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.


Comments
dinesh naidu commented Mar 27 '19, 5:31 a.m. | edited Apr 02 '19, 11:54 p.m.
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 .

dinesh naidu commented Mar 27 '19, 6:19 a.m.
Do i need to change any thing in jbe.ini file

Ralph Schoon commented Mar 27 '19, 8:15 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

To do what? 


dinesh naidu commented Mar 27 '19, 8:18 a.m.
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

Ralph Schoon commented Apr 01 '19, 4:10 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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


dinesh naidu commented Apr 02 '19, 1:26 a.m.
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

Your answer


Register or 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.