It's all about the answers!

Ask a question

RTC 6.0.1 does not work on RSAD 9.5? CANNOT FIND CLASSES and NOT REPORT ERROR ANYWAY


1
1
yaowu liu (2113) | asked Mar 18 '16, 9:44 a.m.
What I do:
a) Start the RSAD
b) File->Accept Team Invitation-->connecting to an existing project area


Following is  from .metadata/.log
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
!SESSION 2016-03-18 08:53:42.770 -----------------------------------------------
eclipse.buildId=unknown
java.fullversion=JRE 1.8.0 IBM J9 2.8 Windows 7 amd64-64 Compressed References 20160106_284759 (JIT enabled, AOT enabled)
J9VM - R28_20160106_1341_B284759
JIT  - tr.r14.java_20151209_107110.02
GC   - R28_20160106_1341_B284759_CMPRSS
J9CL - 20160106_284759
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product com.ibm.rational.rsa4ws.product.v95.ide
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product com.ibm.rational.rsa4ws.product.v95.ide

!ENTRY org.eclipse.emf.ecore 2 0 2016-03-18 08:54:41.570
!MESSAGE Both 'com.ibm.xtools.rit.model' and 'com.ibm.xtools.wadl.model' register a package for 'http://rational.software.architect'

!ENTRY org.eclipse.ui 4 0 2016-03-18 08:56:48.720
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NoClassDefFoundError: org.apache.http.conn.HttpClientConnectionManager
    at com.ibm.team.repository.client.login.AbstractLoginInfo.isWindowsAuthPossible(AbstractLoginInfo.java:31)
    ........................
Caused by: java.lang.ClassNotFoundException: org.apache.http.conn.HttpClientConnectionManager cannot be found by com.ibm.team.repository.common.remoteaccess_1.2.2000.v20151012_2343
 
any idea?


Comments
Donald Nong commented Mar 23 '16, 2:42 a.m.

Do you happen to have two copies of the Apache HTTP client library (of different versions) installed in the same Eclipse base?

8 answers



permanent link
Benjamin Caron (1) | answered Jun 21 '16, 1:50 p.m.
I have the exact same problem. I've installed Software Development Platform (SDP) 9.5 with:
  • IBM Rational Software Architect Designer for WebSphere 9.5.0.1
  • IBM Rational Developer for z Systems 9.5.1.1
  • IBM Rational Business Developer 9.5.0.1
  • IBM InfoSphere Data Architect 9.1.3
  • IBM Data Studio Client 4.1.2
  • IBM Explorer for z/OS 3.0.0.5
  • Rational Team Concert - Client for Eclipse 4.2.x 6.0.2

I can't create a repository connection on Jazz Server, with the exact stack strace above.


permanent link
Sunil Mishra (111) | answered Aug 23 '16, 12:52 p.m.
I am seeing similar issue with RSA 9.5, how I can fix it ?

permanent link
Tom Nelson (1) | answered Sep 28 '16, 11:40 a.m.
I have the same problem using RSA 9.5 and RTC 6.0.1. Is there a solution?

permanent link
Zeeshan Choudhry (6541612) | answered Oct 19 '16, 10:26 a.m.
edited Oct 19 '16, 10:27 a.m.
Please attempt this workaround:

In the plugins folder (Example)
1. C:\Program Files\IBM\IBMIMShared\plugins\org.apache.http.client_4.1.2.20120424
2. C:\Program Files\IBM\IBMIMShared\plugins\org.apache.http.client_4.5.0.v20150903_0106

There are two versions of the same libraries.

Rename the No.1 (which is the oldest one ) to old

example:  C:\Program Files\IBM\IBMIMShared\plugins\org.apache.http.client_4.1.2.20120424-old

Also rename the following in same plugins folder.

C:\Program Files\IBM\IBMIMShared\plugins\org.apache.commons.httpclient_3.1.0.v201012070820.jar
to
org.apache.commons.httpclient_3.1.0.v201012070820.jar-old

so there should be this below  version available there only for the jar which is:

org.apache.commons.httpclient_3.1.0.v201005080502.jar

Run the eclipse with -clean option and attempt to connect to RTC server.


permanent link
Tom Nelson (1) | answered Oct 19 '16, 1:45 p.m.
Zeeshan, the workaround will not work for me because I do not have duplicate jar files at different levels. Here is what is in my IBMIMShared/plugins folder

ls $HOME/IBM/IBMIMShared/plugins | grep org.apache | grep http

org.apache.commons.httpclient_3.1.0.v201012070820.jar
org.apache.http.client_4.1.2.20120424
org.apache.http_4.1.100.v20120904_2353
org.apache.httpcomponents.httpclient_4.3.6.v201411290715.jar
org.apache.httpcomponents.httpcore_4.3.3.v201411290715.jar

permanent link
Zeeshan Choudhry (6541612) | answered Oct 19 '16, 9:24 p.m.
Which version of RAD you are using. I think the extra libs are added via 9502-iFix001.
Could you apply the latest iFix for RAD and try. We are working out a way to get this fixed OOTB. Once the defect is opened with the right product I will add it here for reference.

permanent link
Zeeshan Choudhry (6541612) | answered Oct 20 '16, 6:58 a.m.
edited Oct 21 '16, 6:18 a.m.
actually I realized you do not need to rename anything. If you have the correct version of libraries installed that are required by both RTC or RSAD 9.5.0.2 iFix001 , then a simple -clean start of eclipse picks up the correct libraries to load the classes:


if you install RSAD 9.5.0.2 iFix 001 directly , then there is only one version of this library available:

C:\Program Files\IBM\IBMIMShared\plugins\org.apache.http.client_4.5.0.v20150903_0106

Installing RSAD 9.5 without any iFix first and then updating it results in getting two versions of the libraries.

org.apache.http.client_4.1.2.20120424   <-- added by RSAD 9.5 install
org.apache.http.client_4.5.0.v20150903_0106   <--- added by RSAD update to 9.5.0.2 iFix01

If you do not update RSAD to 9.5.0.2 and install RTC 6.0.1 using installation manager , You will also get the org.apache.http.client_4.5.0.v20150903_0106 version of the library added to the plugins folder.


Now since both tools needs just one, Starting Eclipse -clean option resolves all issues. Latest version of the library is getting loaded for classes after using -clean.


This has been fixed under:

RTC plugins referencing org.apache.http.client and org.apache.http should have proper version tolerances defined (391205)

permanent link
Tom Nelson (1) | answered Oct 20 '16, 7:42 a.m.
Zeeshan, I had RSA 9.5 . I have now updated to RSA 9.5.0.2 iFix 1 and now I have the following plugins

ls $HOME/IBM/IBMIMShared/plugins | grep org.apache | grep http
org.apache.commons.httpclient_3.1.0.v201012070820.jar
org.apache.http.client_4.1.2.20120424
org.apache.http.client_4.5.0.v20150903_0106
org.apache.http_4.1.100.v20120904_2353
org.apache.http_4.4.1.v20150903_0106
org.apache.httpcomponents.httpclient_4.3.6.v201411290715.jar
org.apache.httpcomponents.httpcore_4.3.3.v201411290715.jar

RTC still didn't work so then I renamed a couple of directories as you suggested in your workaround.

mv org.apache.http.client_4.1.2.20120424 org.apache.http.client_4.1.2.20120424-old
mv org.apache.http_4.1.100.v20120904_2353 org.apache.http_4.1.100.v20120904_2353-old

Now I can successfully connect to RTC. Should I still start eclipse with the -clean option?


Comments
Zeeshan Choudhry commented Oct 20 '16, 7:54 a.m. | edited Oct 20 '16, 7:57 a.m.

-clean will just re-provision the eclipse so i would recommend to just use -clean option after you have both libraries updated version available either by installing RTC 6.0.1 using installation Manager or update RSA from 9.5 to 9.5.0.2 iFix001 using installation Manager. Both ways you would get the desired libraries installed. After that you should be able to just use Eclipse -clean without renaming any files or directories. If just using -clean does not work please let me know so I can follow on that.

I could successfully use

RSAD 9.5 + RTC 6.0.1

which were installed using installation manager.

i.e

Installed RSAD 9.5  with Installation Manager. I did not update it afterwards.
Installed RTC 6.0.1 using installation Manager.


I got the desired libraries installed and then I just used

Eclipse -clean

once to start the eclipse instance and problem was resolved. I did not rename any files. The re-provision takes care of everything.


Zeeshan Choudhry commented Oct 21 '16, 6:19 a.m.

Just wanted to add I have update the original answer with the defect that fixed this issue in RTC 6.0.3. The required libs would be loaded once you use the fixed version (6.0.3)

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.