OSLC integration failing using JazzRootServicesHelper when JAS(Jazz Authentication Server) is enabled
We have an OSLC client built that utilizes the JazzRootServicesHelper Java classes, provided by IBM for implementing OSLC clients. This had been working perfectly in the past. However, once we configured the ELM applications to utilize your Jazz Authentication Server (JAS) for authentication, the client.formLogin() calls return an error.
|
5 answers
Ralph Schoon (63.5k●3●36●46)
| answered Jan 08, 10:53 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER I do not know where the JazzRootServicesHelper is defined. I can not find it in the EWM SDK, so I can not comment on who has provided it for which purpose.
Anyway, If you configure JAS, Form Based Login does no longer work. You can not use Form Based Login in your case, you can see Form in the name of the methods. You would have to use a different approach.
Comments
Ralph Schoon
commented Jan 08, 10:56 a.m.
| edited Jan 11, 8:53 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The JazzRootServicesHelper is not an IBM product. It is a deprecated class that is part of the Eclipse Lyo framework. The current version of Lyo should support JAS. You need to upgrade to the latest Lyo version.
https://github.com/OSLC/lyo-samples/blob/master/lyo-client-samples/src/main/java/org/eclipse/lyo/samples/client/EWMSample.java shows how this would work with the current version. |
Hi Ralph
In order to support JAS (for authentication), we have downloaded eclipse LYO 5.0.0 libraries in our OSLC integration application. This in turn requires use a newer version of Java (JDK - 11), so for that we have downloaded JDK-11 version also and it works in our local machine.
But the ELM version 7.0.2 which we are using is supporting JDK-8 only and does not support JDK-11. Then how could we resolve this issue with JDK-8?
Could you please help on what we could do in this case to solve the issue we are seeing.
Thanks
Arghya
Comments
Ralph Schoon
commented Jan 25, 8:12 a.m.
| edited Jan 26, 6:49 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I do not understand why the Java version the Jazz Servers run on is relevant to your LYO based automation. You use whatever Java version you need with Lyo. The Jazz servers use the version they need. Your Lyo stuff is not supposed to run in the Jazz servers. They are supposed to run in their own environments, as far as I can tell. |
Hi Ralph,
Thank you very much for your response.
The code which I wrote in my machine using the LYO 5.0.0 version with JDK-11 and it is working perfectly fine. But when I deployed the same code on my server where I am using ELM - v7.0.2 with JDK 1.8. I am seeing the following error message -
JVMCFRE003 bad major version; class=org/eclipse/lyo/oslc4j/enovia/services/RootServicesService, offset = 6
When I have done some more research on that and found that there is a difference between JDK version and eclipse LYO client. I raised a case to IBM and they said - Unfortunately, ELM version702 only support version 8.
It is not until 703 that we support 11.
Could you please let me know your thought on that ?
Thanks
Arghya
|
Ralph Schoon (63.5k●3●36●46)
| answered Jan 30, 9:45 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
My 2 cents.
Comments Liberty does support setting up different java versions for different applications. We use it ourselves. Is there a howto, Michael? I googled for a bit but did nt find how to configure this.
|
Hi Ralph I have tried to run the EWM sample code which provided by you earlier through a GitHub link. So in that I have changed the QA URL (JAS enabled) to our production URL (which is Non - JAS environment) in the run configuration. After I run it It goes perfectly till Step 4, it fetched the rootservices document. In step 5 after printing the normal print statement it is throwing this error below : -
[DEBUG] (org.eclipse.lyo.samples.client.EWMSample) - STEP 1: Configure the ClientBuilder as needed for your client application [DEBUG] (org.eclipse.lyo.samples.client.EWMSample) - STEP 2: Set up authentication [ INFO] (org.eclipse.lyo.samples.client.EWMSample) - Using Basic authentication [DEBUG] (org.eclipse.lyo.samples.client.EWMSample) - STEP 3: Create a new OslcClient [DEBUG] (org.eclipse.lyo.samples.client.EWMSample) - STEP 4: Get the URL of the OSLC ChangeManagement service from the rootservices document [DEBUG] (org.eclipse.lyo.client.RootServicesHelper) - Fetching rootservices document at URL <"our rootservice url" [DEBUG] (org.eclipse.lyo.client.RootServicesHelper) - Using catalog domain <"our catalog domain URL" [DEBUG] (org.eclipse.lyo.samples.client.EWMSample) - STEP 5: Find the OSLC Service Provider for the project area we want to work with [ERROR] (org.eclipse.lyo.samples.client.EWMSample) - Jazz server returned an HTML page instead of RDF. Are you sure you have chosen between Basic and JAS Forms auth correctly?
Could you please let me know your what is this error actually expecting ?
Comments
The original question in this question is already answered. I am not willing to piecemeal debug your lyo code here in the same question.
Note that you get the rootservices document, because that does not require authentication.
|
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.