Plain java API fails to connect Rational Team Concert server in WebSphere Application Server with PARENT_FIRST classloading

Technote (troubleshooting)


Problem(Abstract)

Attempts to deploy an EAR to IBM WebSphere Application Server (WAS) from IBM Rational Team Concert (RTC) results in the error "java.lang.NoClassDefFoundError".

Symptom

You are using RTC Java Client API, where the application is 1) running well as plain Java and 2) wrapped as EAR/WAR running well in Tomcat, but is getting an error when deploy EAR to IBM WebSphere application Server.

The following are error examples:


SystemErr R com.ibm.team.repository.common.TeamRepositoryException: Badly configured client. Missing a foundation component tag
and
java.lang.NoClassDefFoundError: com.ibm.team.repository.common.internal.util.InternalTeamPlatform

Cause

RTC Plain Java Client API library conflicts with WAS system library, and also faces problem with classloading issue.

Environment

The problem happens to both WAS 7.0 and 8.0 versions.

Resolving the problem

To fix the problem and deploy the application using RTC Plain Java Client API library on WAS which has limited supported scenario, you need to modify the following detailed settings:

  1. The application needs to use classloader of PARANT_LAST policy, not the default PARENT_FIRST policy.

  2. The javax.servlet.xxx.jar can not be included in the provided package. You need to remove the jar from RTC client API library and to use the jar from WAS.


Note: Set up the RTC Plain Java Client API library as an isolated shared library, which provides extra flexibility for the application itself.

Related information

jazz.net forum topic 75682
jazz.net enhancment workitem

Rate this page:

(0 users)Average rating

Document information


More support for:

Rational Team Concert
Team Server

Software version:

4.0, 4.0.0.1, 4.0.1

Operating system(s):

Windows

Reference #:

1615569

Modified date:

2013-03-20

Translate my page

Machine Translation

Content navigation