It's all about the answers!

Ask a question

[Solved]TeamRespositoryException in login() Servlet&WAS7

Dong Young Kim (1931920) | asked Nov 18 '11, 1:43 a.m.
I've got TeamRepositoryException during login in my servlet although my project includes all RTC client java libraries under WEB-INF/lib.

	IProgressMonitor monitor = new NullProgressMonitor();

ITeamRepository repo = TeamPlatform.getTeamRepositoryService().getTeamRepository(repositoryURI);
//ClassLoader loader = Thread.currentThread().getContextClassLoader();
repo.registerLoginHandler(new ITeamRepository.ILoginHandler() {
public ILoginInfo challenge(ITeamRepository repository) {
return new ILoginInfo() {
public String getUserId() {
return "userid";
public String getPassword() {
return "password";

The issue is because of missing plugin configurations in eclipse classes, caused by classloading issues.

WebSphere 7 is implemented using OSGI technology like eclipse, so the eclipse platform classes by default are loaded from WebSphere, and the ones not by RTC client libraries included in the web application.

A possible solution is to include the lib classes into the webapp and reverse the class loading policy. Be careful to remove javax.servlet jar (included into RTC clint libraries), in order to be able to use the websphere classes for this specific library.

I tried to set class loading policy as reverse order, but didn't work.

For the version check issue, you need to ensure that your client includes the plugin, which includes the extension:

" point="">
" <componentConfiguration
" clientCompatibilityVersion="3.0"
" id=""
" version="3.0">
" </componentConfiguration>
" </extension>

There's a similar extension for Foundation in, which you probably already have or nothing would work.

To see how these get processed, the relevant code is in

I do like to know how I can make this plugin get information from his plugin.xml.

Any solution?

SystemOut.log - TeamPlatform.startup()
 StandaloneFil W getBundleLocalization Could not open META-INF/MANIFEST.MF for bundle: jar:file:/C:/IBM/WebSphere/AppServer/lib/pc-appext.jar!/plugin.xml

StandaloneFil W getBundleLocalization Could not open META-INF/MANIFEST.MF for bundle: jar:file:/C:/IBM/WebSphere/AppServer/lib/rrd-appext.jar!/plugin.xml

SystemErr.log - ITeamRepository.login() Badly configured client. Missing a foundation component tag. 

at ccm.servlets.TryLogin.doGet(
at javax.servlet.http.HttpServlet.service(

3 answers

permanent link
sam detweiler (12.5k6195201) | answered Nov 18 '11, 11:54 a.m.
here is the jars my web application based workitem client has listed in its web_inf/lib directory .


permanent link
Dong Young Kim (1931920) | answered Nov 19 '11, 8:36 p.m.
Tentative solution on WEB-INF/lib is SETTING CLASS LOADER of application as follows.

- Classloader mode : PARENT_LAST
- WAR classloader policy : APPLICATION

With this, I succeeded in login().

But with classloader change, other framework based codes did not work.

Another solution is MAKING RTC Plain Client jars as EAR/Utility Jars. In this case, classloader mode : PARENT_LAST was sufficient and framework code worked.

permanent link
Nick Edgar (6.5k711) | answered Apr 21 '12, 11:37 a.m.
This issue is being discussed again now in

Your answer

Register or to post your answer.