It's all about the answers!

Ask a question

Integration of configruation aware RM service provider with jazz

Saqib Niaz (71523) | asked Jan 20 '16, 9:41 a.m.
I have Jazz team server 6.0.1 RC running on a linux machine.
I have implemented my own RM service provider and it is integrated and working fine with jazz quality management module.
Now, I am trying to make my RM service provider "Configuration Aware" on the guidelines given in OSLC Configuration Management 1.0

I have associated my jazz qm project with a Global Configuration Context. And now when I try to access my service provider (qm project -> planning (selected a testPlan) -> Requirement Collection Links -> +), jazz gives an error saying that "AQXCM5046E The selected project, "MyProjectName", does not support configuration management capabilities."

Question: What should I do in my rootServices rdf and serviceProvider rdf so that jazz can know that my service provider is Configuration Aware?

Accepted answer

permanent link
Kathryn Fryer (50347) | answered Jan 20 '16, 11:41 a.m.
Check out this page on the deployment wiki:

There are some service provider parameters that the CLM applications check, especially the configurationAware property.  Those are detailed in this section of that wiki page.  You may find some other pertinent information there also.

If you have any insights to share based on your experience, we'd like to hear them.
Saqib Niaz selected this answer as the correct answer

Saqib Niaz commented Jan 21 '16, 4:12 a.m.

Thanks Kathryn for a quick answer.

I have gone through the page that you have recommended.

I have read the specification from these three links:

These namespaces are mentioned on these pages

While the namespace mentioned on your link is:

Can you please explain a bit why there are differences?
Or is it some interim implementation which will be replaced with an updated version later?

Thanks and Regards

Saqib Niaz commented Jan 27 '16, 8:03 a.m.

Hi Kathryn,
i am following the guidelines given on the link you mentioned. I have put globalConfigurationAware and other two tags in my serviceprovider document
I am able to add resources from my project to Requirement Collection Links in a Configuration aware qm project.
Now, i am trying to add configuration baseline/stream from my project to the Global Configuration i.e. "Scenario 3: Enable users to define configurations in your own application". from your document.
When I press "Add Configuration" in Global Configuration, a dialog opens and says that "x friend servers are not available" on pressing show details it shows my project name there.
When this dialog opens it accesses rootservices and oslc_config rdf from my server and after that it doesn't try to get anything from my server?
my oslc_config is similar to the one that is returned by

https://jazz.local:9443/rm/oslc_config (our local jazz installation). Can you guide me further a bit, how to make it work?

2 other answers

permanent link
Kathryn Fryer (50347) | answered Jan 21 '16, 8:22 a.m.
Hi Saqib,
The namespaces are defined based on the OSLC specifications. You need those as part of implementing the specs.

CLM has implemented some extensions beyond the specifications, like the service provider properties.  Those are defined in the namespace mentioned.

Does that help?

Saqib Niaz commented Jan 27 '16, 3:37 a.m.

Hi Kathryn,
The link that you sent in first answer is really helpful.
I was just confused why the material on that page is different from the OSLC configuration management specification.
I have started my implementation keeping in view the guidelines given on your link.

permanent link
David Honey (1.7k17) | answered Jan 27 '16, 11:38 a.m.
Hi Saqib,

I'm not sure I understand your question. But the following might help. In order for the GCM application to be able to select configurations from a CM provider, GCM discovers which CM providers support selection dialogs as follows:
  1. It determines the friends known to the JTS. For example, this might include "/qm", "/rm" and so on.
  2. For each friend from #1, it gets its root services document. It looks for an oslc_config:cmServiceProvider statement. The object of that statement should be the URI of an OSLC service provider catalog.
  3. It reads the service provider catalog, and looks at each service provider. Those that declare a selection dialog are noted as available CM providers.
For example, DNG's root services will contain something like:
    <oslc_config:cmServiceProviders    rdf:resource="https://localhost:9443/rm/oslc_config"/>

This indicates that the OSLC Service Provider Catalog for CM discovery is at https://localhost:9443/rm/oslc_config
A GET on that should return something like:
<oslc:ServiceProvider rdf:about="https://localhost:9443/rm/oslc_config/components">
       <oslc:details rdf:resource="https://localhost:9443/rm/oslc_config/components"/>
<dcterms:title>Requirements Management</dcterms:title>
    <oslc:domain rdf:resource=""/>
    <dcterms:description>Configuration Services Provided by the RM application.</dcterms:description>
<dcterms:title>RM Configuration Management Services Catalog</dcterms:title>
The example RDF shows a service provider at https://localhost:9443/rm/oslc_config/components
A GET on that service provider gives:

<dcterms:title>RM Component Configuration Picker</dcterms:title>
<oslc:label>RM Component Configuration Picker</oslc:label>
<oslc:dialog rdf:resource="https://localhost:9443/rm/_ajax-modules/"/>
<oslc:resourceType rdf:resource=""/>
<oslc:usage rdf:resource=""/>

Hope that helps,
Best regards,

Saqib Niaz commented Jan 28 '16, 8:41 a.m. | edited Jan 28 '16, 8:45 a.m.

Hi David,
Thanks for a detailed answer.
I am exactly doing the same steps that you have mentioned in your answer. Basically, I have copied the responses from jazz:9443/rm/rootservices, oslc_config and the components. Mine is an exact replica just the links are changed and are pointing to our services.
But the problem is when I try to "Add Configuration" in a Global Configuration Stream, a dialog shows up and when i press refresh button on that dialog, it accesses the rootservices and oslc_config from my server, after that no request comes in from jazz to my server. And the Add configuration dialog shows a message "One friend server is not available" and the list contains the name of our server.
My oslc_config has a link to our components service (same as jazz rm oslc_config) but jazz never tries to access that.
Can you please guide me further a bit, what is happening? How can jazz decide based on the oslc_config response that this friend server is offline?
If you say i can send the responses for the services for rootservices, oslc_config and components from my server.
The version of our jazz server is 6.0.1.

David Honey commented Jan 28 '16, 9:19 a.m.

You might get more diagnostics by enabling DEBUG level for the LcProviderHelper class:

  1. Stop the GC server.
  2. cd <installdir>/server/conf/gc
  3. Edit the file, add the following line:
  4. Restart the GC server.
Then try your test. There should be additional DEBUG entries in the <installdir>/server/logs/gc.log file. These might provide clues as to what's happening. The log might also contain other information of diagnostic value - for example, if a GET fails, it might get logged with some details of why it failed.

Saqib Niaz commented Jan 28 '16, 10:33 a.m.

Hi David,
I have done all the steps that you mentioned and it seems like some NullPointerException is being thrown while accessing my service. Following is the relevant part of the log
2016-01-28 16:17:12,013 [Default Executor-thread-249 @@ 16:17 jazz <gc.viewConfiguration/Search for a configuration to add to the selected stream@700933f5-7174-431b-8312-0a5f3653f58d> /gc/gc.webui.discoverLcProviders] DEBUG eam.gc.web.frontservice.discovery.LcProviderHelper  - Skipping local-configuration provider 'https://bonnie.local:8443/com.consul.oslc.serviceprovider/rootservices' due to an error
java.util.concurrent.ExecutionException: java.lang.NullPointerException
    at java.util.concurrent.FutureTask.get(
Would you like full log?

David Honey commented Jan 29 '16, 8:12 a.m.

Please submit a defect work item on ( and include as much detail as possible, including the gc.log file. Thanks.

Your answer

Register or to post your answer.