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

Not able to run OSLC lyo sample code for RTC in Spring boot framework environment

 I am trying to create a connector for RTC using the sample code provided in the link 'https://github.com/OSLC/lyo-samples/blob/master/oslc-java-samples/src/main/java/org/eclipse/lyo/client/oslc/samples/RTCFormSample.java' in Spring Boot framework using STS 4 IDE.
My pom.xml contains all the dependencies which are there in the sample pom.xml provided in the above link, and it works fine when I invoke the method from Test class containing the main method.
But after deploying the jar and all the dependent jars under Maven Dependencies to my deployment folder, I can see that my code is not working when the call comes to the following line:

JazzRootServicesHelper helper = new JazzRootServicesHelper(webContextUrl,OSLCConstants.OSLC_CM_V2);

Need help running this code from a deployed jar, which I am not able to do at the moment, which I am guessing, is due to the absence of one or many dependent jars inside the deployed folder.

0 votes



3 answers

Permanent link

You should probably ask that question on the OSLC Forum at https://forum.open-services.net/ since OSLC Lyo is part of OSLC code, not Jazz code.

1 vote


Permanent link
I recently started developing a Spring Boot app that uses Lyo. Haven't had Lyo-issues so far. 
You don't make it easy for others to help you when the only detail about your problem you share is, "it doesn't work."

0 votes

Comments

I just want to know what all dependencies are required to successfully initialize an object of class 'JazzRootServicesHelper'..maybe I need that jar to be present in my deployment folder, as every time the call goes to the method's finally block after executing the line JazzRootServicesHelper helper = new JazzRootServicesHelper(webContextUrl,OSLCConstants.OSLC_CM_V2);.

I think you're asking on the wrong forum. It looks like JazzRootServicesHelper is not Jazz code but Eclipse Lyo code. Please ask your question on the OSLC Forum at https://forum.open-services.net/.


Permanent link

 As David has rightly pointed out, this is the wrong forum for the question. Moreover, the JazzRootservicesHelper is from an old Eclise Lyo version and deprecated. See https://github.com/OSLC/lyo-samples/blob/master/oslc4j-client-samples/src/main/java/org/eclipse/lyo/oslc4j/client/samples/EWMSample.java for the current version. The new class is called RootServicesHelper.


In addition to that, Lyo uses Maven and you would only have to look into the POM file in the Eclipse project containing the class above to understand the dependencies (or you try to figure it out using the imports). 

I have no idea how you get Spring and Maven to work together. There are likely other forums that are better suited for those questions.  

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,938
× 25

Question asked: Nov 08 '21, 8:12 a.m.

Question was seen: 2,121 times

Last updated: Nov 09 '21, 2:14 p.m.

Related questions
Confirmation Cancel Confirm