IS OSLC workshop example compatible with CLM3.0.1.*?
Hi CLM experts,
I have been trying the OSLC workshop example, particularly for RM part but having problem with running examples (3 and 4) successfully. The issue seems to be authorisation failure and it throws with the following error message from RM example 4.
>> POST https://clm.com:9443/jts/j_security_check
- Server: Apache-Coyote/1.1
- Content-Length: 0
- Date: Tue, 02 Oct 2012 23:51:18 GMT
3/10/2012 09:51:18 org.apache.http.impl.client.DefaultRequestDirector handleResponse
WARNING: Authentication error: Unable to respond to any of these challenges: {oauth=WWW-Authenticate: OAuth realm="Jazz"}
org.apache.http.client.HttpResponseException: Unauthorized
at net.jazz.oslc.consumer.examples.Example04.getServiceProvider(Example04.java:303)
at net.jazz.oslc.consumer.examples.Example04.run(Example04.java:79)
at net.jazz.oslc.consumer.examples.Example04.main(Example04.java:108)
I have tried with different instances of CLM but results are same for v3.0.1. However, this works just fine on CLM4.0. Can anyone advise me what I could possibly miss here?
Thank you in advance,
I have been trying the OSLC workshop example, particularly for RM part but having problem with running examples (3 and 4) successfully. The issue seems to be authorisation failure and it throws with the following error message from RM example 4.
>> POST https://clm.com:9443/jts/j_security_check
- Server: Apache-Coyote/1.1
- Content-Length: 0
- Date: Tue, 02 Oct 2012 23:51:18 GMT
3/10/2012 09:51:18 org.apache.http.impl.client.DefaultRequestDirector handleResponse
WARNING: Authentication error: Unable to respond to any of these challenges: {oauth=WWW-Authenticate: OAuth realm="Jazz"}
org.apache.http.client.HttpResponseException: Unauthorized
at net.jazz.oslc.consumer.examples.Example04.getServiceProvider(Example04.java:303)
at net.jazz.oslc.consumer.examples.Example04.run(Example04.java:79)
at net.jazz.oslc.consumer.examples.Example04.main(Example04.java:108)
I have tried with different instances of CLM but results are same for v3.0.1. However, this works just fine on CLM4.0. Can anyone advise me what I could possibly miss here?
Thank you in advance,
One answer
Thank you Rosa. Charlie probably didn't phrase the issue adequately.
We have solved the issue and I would like to post the response for any others that may encounter this problem.
We have set up separate URLs for our applications so that jts server is https://jts.apps and rm server is https://rm.apps.
In order to use the workshop examples, you need to perform a replace on the rm server URL to be the jts URL when you are accessing the catalog, but when you come down to the next level, you need to leave the rm server URL.
System.out.println(">> Service Providers Catalog: "+catalogURI);
catalogURI = catalogURI.replaceAll("rm.apps", "jts.apps");
We have solved the issue and I would like to post the response for any others that may encounter this problem.
We have set up separate URLs for our applications so that jts server is https://jts.apps and rm server is https://rm.apps.
In order to use the workshop examples, you need to perform a replace on the rm server URL to be the jts URL when you are accessing the catalog, but when you come down to the next level, you need to leave the rm server URL.
System.out.println(">> Service Providers Catalog: "+catalogURI);
catalogURI = catalogURI.replaceAll("rm.apps", "jts.apps");
Comments
Rosa Naranjo
FORUM MODERATOR / JAZZ DEVELOPER Oct 03 '12, 4:11 p.m.Charlie Seo
JAZZ DEVELOPER Oct 22 '12, 5:20 p.m.Amy Lai
Oct 22 '12, 5:20 p.m.Marc van Leeuwen
Mar 05 '13, 10:15 a.m.