Spring Tool Suite 4.3.1 & RTC-Client-p2Repo 6.0.6.1
I'm getting an exception in STS when I try to create a repository connection and I'm getting the following exception:
java.lang.NoClassDefFoundError: org/apache/http/impl/client/WinHttpClients
at com.ibm.team.repository.transport.client.RemoteTeamServer.isWindowsAuthAvailable(RemoteTeamServer.java:2679)
at com.ibm.team.repository.client.login.AbstractLoginInfo.isWindowsAuthPossible(AbstractLoginInfo.java:31)
In my searching, I came across this old question: https://jazz.net/forum/questions/218665/rtc-601-does-not-work-on-rsad-95-cannot-find-classes-and-not-report-error-anyway
Is there anything I can do to fix my current install? If not, which versions of Eclipse / STS are compatible with the RTC plugin?
One answer
I am not familiar with STS. You may consider to have Eclipse with the Spring IDE plugin and then RTC-Client-p2Repo 6.0.6.1 to the same Eclipse. For v6.0.6.1, the supported Eclipse run time can be found from system requirement:
(prerequisite > Eclipse run time environment)
Comments
As an update, we cannot get the 6.0.6.1 RCT client to run on a 2019-06 version of Eclipse (or a version of STS that bundles the 2019-06 version of Eclipse). We can however get the 6.0.6 client to work with Eclipse Photon. I have not yet tried 6.0.6.1 on Eclipse Photon.
The error message when trying to Connect to a Repository location (in our error log) is:
Unhandled event loop exceptionjava.lang.NoClassDefFoundError: org/apache/http/impl/client/WinHttpClientsat com.ibm.team.repository.transport.client.RemoteTeamServer.isWindowsAuthAvailable(RemoteTeamServer.java:2679)....
We are using the Java 8 JDK that comes with WebSphere 9. Though, we did try an Oracle Java 8 JDK too, with no success.
Interestingly, an older version of the RTC Client, 6.0.1 works with STS 4.3.1 (which is based on Eclipse 2019-06).