Installation of RTC WorkItem Command Line Version 3.0
for installation of the above mentioned utiliy I followed the instructions in the included ReadMe file.
1. Download opencsv 2.3 from http://sourceforge.net/projects/opencsv/files/opencsv/2.3/ and place the library opencsv-2.3.jar into the folder lib in the WCL folder. Done Which Java Version is suggested? 2. Copy the Eclipse plugins from RTC Eclipse into the lib folder Open the Eclipse Plugins folder for examle jazz\client\eclipse\plugins and search for a file com.ibm.team.workitem.rcp.core_*.jar Copy this jar File into the folder lib in the WCL folder. Done. Running the scrpt by running wcl I get the following error: Exception in thread "main" java.lang.NoClassDefFoundError: au/com/bytecode/opencsv/CSVWriter at com.ibm.js.team.workitem.commandline.commands.ExportWorkItemsCommand.createWriter(ExportWorkItemsCommand.java:376) at com.ibm.js.team.workitem.commandline.commands.ExportWorkItemsCommand.process(ExportWorkItemsCommand.java:311) at com.ibm.js.team.workitem.commandline.framework.AbstractTeamRepositoryCommand.execute(AbstractTeamRepositoryCommand.java:89) at com.ibm.js.team.workitem.commandline.WorkitemCommandLine.runCommands(WorkitemCommandLine.java:293) at com.ibm.js.team.workitem.commandline.WorkitemCommandLine.run(WorkitemCommandLine.java:224) at com.ibm.js.team.workitem.commandline.WorkitemCommandLine.main(WorkitemCommandLine.java:174) Caused by: java.lang.ClassNotFoundException: au.com.bytecode.opencsv.CSVWriter What did I miss? Many thanks in advance. Christine |
Accepted answer
Ralph Schoon (63.5k●3●36●46)
| answered Nov 18 '15, 9:22 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Nov 18 '15, 9:23 a.m.
I did exactly what you described and actually downloaded the version before I did that. Everything works well for me. So I have to assume you downloaded a later version of openCSV or put the wrong jar file into the lib folder. Or, maybe the Jar file is broken.
Christine Makasy selected this answer as the correct answer
Comments
Christine Makasy
commented Nov 19 '15, 2:18 a.m.
Tried it again. The download behind the mentioned link is an entire folder structure. I tried it with only the opencsv-2.3.jar (date: 2011/04/15) executable as well as the entire folder. both Failed.
Ralph Schoon
commented Nov 19 '15, 2:48 a.m.
| edited Nov 19 '15, 2:49 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Download the opencsv-2.3-src-with-libs.tar.gz file from the page. Link: http://sourceforge.net/projects/opencsv/files/opencsv/2.3/opencsv-2.3-src-with-libs.tar.gz/download . Use 7Zip or other tools to unpack and untar. Go into the folder opencsv-2.3\deploy locate opencsv-2.3.jar and copy that into the libs folder of WCL.
Christine Makasy
commented Nov 19 '15, 9:14 a.m.
Running the tool as Eclipe Project it is working fine.
Maybe you have a Java version issue with running it from the Jar? Not sure. If it works in Eclipse, it should work the same out of it. The difference is the JDK you provide, I guess.
About Your question above - the Java version to use: The WCL bat is set up to use the JDK that comes with the RTC Eclipse client one. Try to use that JDK.
Cesar Sasaki
commented Jul 04 '17, 4:14 p.m.
Hi
I'm having the same problem :
I'm using version 4 of the wcl, and got my structure ready. It works with other commands like printtypeattributes , but I'm trying to export the attachments. I have downloaded and paste them in the lib folder of the WCL but I'm getting the same error. Also the folder of output already exist:
Thanks
Hi Ralph
It seems that for wcl v4 opencsv-2.3 doesnot work but neither the 3.7 version.
I download the wcl v3.2 and it works with opencsv-2.3. But I'm getting an error of :
Looking at the code , it seems that that message is brought up by 2 errors:
UnsupportedEncodingException or FileNotFoundException . What it means?
I have the folder where the output is created already. I try with the test.csv created already also but it did not worked.
this is my code :
wcl -exportworkitems /ignoreErrors repository="https://*/ccm" user=administrador password=* projectArea="GIT" exportFile=”C:\temp\test.csv” query=”All” columns="workItemType,summary”
showing 5 of 7
show 2 more comments
|
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.