IBM Support

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

Troubleshooting


Problem

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 PARENT_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.

[{"Product":{"code":"SSUC3U","label":"IBM Engineering Workflow Management"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Team Server","Platform":[{"code":"PF033","label":"Windows"}],"Version":"4.0;4.0.0.1;4.0.1","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Team Concert

Document Information

Modified date:
16 June 2018

UID

swg21615569