Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Creating links

Hi, Can anyone please help with this. I am getting this error in my participant...not finding service I am trying to use

17:39:35,069 WARN com.ibm.team.repository - Exception thrown when resolving package descriptor for package "org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescriptor@2df02df0": java.lang.ClassNotFoundException: com.ibm.team.repository.internal.tests.componentversion.ComponentversionPackage2
17:39:59,634 ERROR com.ibm.team.process.common - CRJAZ6011E:An exception occurred creating extension.
com.ibm.team.repository.common.transport.TeamServiceRegistryException: CRJAZ1972E The service "net.jazz.rtcext.workitem.extensions.service.DeployOnStateChangeParticipant" failed to activate because a service it depends on, "com.ibm.team.links.service.ILinkServiceLibrary", failed to be activated
at com.ibm.team.repository.common.transport.internal.registry.AbstractActivationManagerOwner.buildServicesMap(AbstractActivationManagerOwner.java:319)

I can't actually find the classes in the sdk even though the import does not complain.


>> in my java code <<

..
import com.ibm.team.links.common.service.ILinkService;
import com.ibm.team.links.service.ILinkServiceLibrary;
..

ILinkService linkService = getService(ILinkService.class);
ILinkServiceLibrary linkLibrary = (ILinkServiceLibrary) linkService.getServiceLibrary(ILinkServiceLibrary.class);
..

Thanks
Sola

0 votes



2 answers

Permanent link
I am getting this error in my participant...not finding service I am trying to use

17:39:59,634 ERROR com.ibm.team.process.common - CRJAZ6011E:An exception occurred creating extension.
com.ibm.team.repository.common.transport.TeamServiceRegistryException: CRJAZ1972E The service "net.jazz.rtcext.workitem.extensions.service.DeployOnStateChangeParticipant" failed to activate because a service it depends on, "com.ibm.team.links.service.ILinkServiceLibrary", failed to be activated
at com.ibm.team.repository.common.transport.internal.registry.AbstractActivationManagerOwner.buildServicesMap(AbstractActivationManagerOwner.java:319)

I can't actually find the classes in the sdk even though the import does not complain.

See this post: https://jazz.net/forums/viewtopic.php?p=56621#56621. It helps me, too. :)
Your Java code is fine:
import com.ibm.team.links.common.service.ILinkService;

import com.ibm.team.links.service.ILinkServiceLibrary;

ILinkService linkService = getService(ILinkService.class);
ILinkServiceLibrary linkLibrary = (ILinkServiceLibrary) linkService.getServiceLibrary(ILinkServiceLibrary.class);

but you have to add the required service in your "plugin.xml" file:
<extensionService componentId="your.component.id" implementationClass="your.class">

<prerequisites>
<requiredService interface="com.ibm.team.links.common.service.ILinkService" />
</prerequisites>
</extensionService>

Cheers.

0 votes


Permanent link
Hi Sola,

I am trying to find an example to login to project repository using java application.

Please update me if you have any example code for it?

Cheers,
Simon



Hi, Can anyone please help with this. I am getting this error in my participant...not finding service I am trying to use

17:39:35,069 WARN com.ibm.team.repository - Exception thrown when resolving package descriptor for package "org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescriptor@2df02df0": java.lang.ClassNotFoundException: com.ibm.team.repository.internal.tests.componentversion.ComponentversionPackage2
17:39:59,634 ERROR com.ibm.team.process.common - CRJAZ6011E:An exception occurred creating extension.
com.ibm.team.repository.common.transport.TeamServiceRegistryException: CRJAZ1972E The service "net.jazz.rtcext.workitem.extensions.service.DeployOnStateChangeParticipant" failed to activate because a service it depends on, "com.ibm.team.links.service.ILinkServiceLibrary", failed to be activated
at com.ibm.team.repository.common.transport.internal.registry.AbstractActivationManagerOwner.buildServicesMap(AbstractActivationManagerOwner.java:319)

I can't actually find the classes in the sdk even though the import does not complain.


>> in my java code <<

..
import com.ibm.team.links.common.service.ILinkService;
import com.ibm.team.links.service.ILinkServiceLibrary;
..

ILinkService linkService = getService(ILinkService.class);
ILinkServiceLibrary linkLibrary = (ILinkServiceLibrary) linkService.getServiceLibrary(ILinkServiceLibrary.class);
..

Thanks
Sola

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,946

Question asked: Nov 03 '11, 2:08 p.m.

Question was seen: 5,652 times

Last updated: Nov 03 '11, 2:08 p.m.

Confirmation Cancel Confirm