How to resolve com.ibm.team.repository.common.TeamRepositoryException thrown by wcl command?
I installed "Work Item Command Line 4.1" on UNIX. When executing the wcl command, the following exceptions were thrown. Please help out with a resolution. Thanks! <style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 14.0px; font: 12.0px Courier; color: #000000; -webkit-text-stroke: #000000} span.s1 {font-kerning: none} </style> <style type="text/css"> p.p1 {margin: 0.0px 0.0px 16.1px 0.0px; line-height: 28.0px; font: 12.0px Courier; color: #000000; -webkit-text-stroke: #000000} span.s1 {font-kerning: none} </style>
Exception in thread "main" java.lang.NoClassDefFoundError: com.ibm.team.repository.common.TeamRepositoryException
at java.lang.J9VMInternals.prepareClassImpl(Native Method)
at java.lang.J9VMInternals.prepare(J9VMInternals.java:283)
at java.lang.Class.getMethod(Class.java:1204)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:507)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:499)
Caused by: java.lang.ClassNotFoundException: com.ibm.team.repository.common.TeamRepositoryException
at java.net.URLClassLoader.findClass(URLClassLoader.java:602)
at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:786)
at java.lang.ClassLoader.loadClass(ClassLoader.java:760)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:330)
at java.lang.ClassLoader.loadClass(ClassLoader.java:741)
... 5 more
2 answers
I think I have seen similar issues in the past.I think this was typically related to using the wrong Java Version. Make sure to use Java 1.8 with WCL, ideally the JRE that ships with RTC.