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)
/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
2 answers
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
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
-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
Comments
Lakshmi Narasimhan T V
JAZZ DEVELOPER Apr 01 '19, 2:30 a.m.dinesh naidu
Apr 01 '19, 2:39 a.m.<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>
Lakshmi Narasimhan T V
JAZZ DEVELOPER Apr 01 '19, 4:22 a.m.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)
dinesh naidu
Apr 01 '19, 6:48 a.m./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
JAZZ DEVELOPER Apr 01 '19, 9:20 a.m.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?
dinesh naidu
Apr 01 '19, 9:57 a.m.<!--
<random-machine-script />
-->
<random-machine-nodejs />
</target>
Lakshmi Narasimhan T V
JAZZ DEVELOPER Apr 02 '19, 2:00 a.m.