RTC 6.0.1 does not work on RSAD 9.5? CANNOT FIND CLASSES and NOT REPORT ERROR ANYWAY
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?
8 answers
- 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.
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.
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
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)
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
-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.
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)
Comments
Donald Nong
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?