Skip to main content
Jump to: navigation, search


< Lyo
Revision as of 14:19, 14 May 2012 by (Talk | contribs) (Scenario:)

Building and Running the Lyo Sharepoint Sample in Eclipse


Clone the Lyo Server git repository

This example assumes EGit is being used.

  • Open the Git Repositories view in Eclipse and click the Clone Git Repository icon
  • Use git:// as the URI (browse it also on line). User/Password are not required.
  • On the Branch Selection page, select the master branch
  • On the Local Destination page, specify a location or accept the default and click Finish

The repository should now show up in your Git Repositories view.

Import Eclipse projects from the git repository

  • In the Git Repositories view, right click org.eclipse.lyo.server and select Import Projects
  • Select the Import Existing Projects wizard and click Next
  • Import the following projects:
    • org.eclipse.lyo.samples.sharepoint

TODO: screenshot

  • [Optional] Add the projects to a new working set.

Edit the Sharepoint configuration

Find and open the file.

Modify the values in the following key/value pairs:

The adapter_uri is used to specify the OSLC adapter which will sit between Microsoft Sharepoint and Rational Team Concert (RTC). It should be a working URI for the OSLC adapter servlet, e.g. http://localhost:8080/OSLCSharepoint. This servlet provides an OSLC Catalog, Service provider, an example of Creation and Selection dialogs and a delegated UI for sharepoint documents.

Next, specify the Microsoft Sharepoint service for OData by updating sharepoint_uri, usually this is specified by appending "_vti_bin/listdata.svc" to your Sharepoinnt server. (e.g.:

Next, specify the basic authentication (userid, password) for accessing the Sharepoint server at the address for sharepoint_uri.

Build the projects

  • In the Eclipse Package Explorer view, select all the projects you've imported, right click, and select Maven->Update Project Configuration. Click OK.
  • Run Maven Install on each project in this order,
    • org.eclipse.lyo.server.samples.sharepoint
  • To run Maven Install,
    • Expand the project
    • Right click pom.xml and select Run As->Maven install.


  • IBM JVM/JRE Users: There is an issue with m2eclipse and the the IBM JRE. If you have see the error java.lang.NoClassDefFoundError: org.slf4j.impl.StaticLoggerBinder when running a Maven install, you need to copy a newer slf4j api jar into your JRE directory to work around the issue until it is fixed:

Run the Sharepoint sample web application

This Sharepoint adapter looks through the sharepoint oData catalog for ContentType="Document". For each sharepoint library that contains documents, an OSLC service provider is created with the basic services for an OSLC Delegated dialog foe selection and creation as well as listing the documents with a UI preview.


In this scenario, there are three participants with these roles:

  • Project Manager
  • Design Architect
  • Software Engineer

Rational Team Concert is widely recognized as a tool to manage the lifecycle processes for software: defect tracking, quality assurance, requirements management, and much more. In this scenario, a project manager has determined a customer request will require an architectural design change, and once the design change has been approved the modifications will be worked on by a software engineer.

Before the use of the Lyo Sharepoint adapter: The Project Manager consults and discusses the customer's requested architecture change with a Design Architect who works for a business partner. The Design Architect manages design document changes using Microsoft Sharepoint and Microsoft Word in a separate system. The Project Manager and the Software engineer utilize RTC to manage the changes to the software. In this case, once the Project Manager discusses and approves the work to be completed by the Design Architect, he opens a workitem in RTC and assigns in to a Software Engineer. The Software Engineer has to email, IM or call the Design Architect until he/she determines the design changes have been approved.

After adding the Lyo Sharepoint adapter: After the Project Manager consults with the Design Manager, he opens a workitem in RTC, and adds a link to the workitem which will allow the Software Engineer to readily determine the approval state of the design document kept in Sharepoint.

Before working with this scenario you will need to set-up your environment for the Lyo Sharepoint adapter and modify the file.

Then you should be ready to try this adapter with RTC.

  1. Open a workitem in RTC.
  2. Navigate to the workitem.
  3. Select the Links tab
  4. Add Related Artefacts
  5. In the Resource URL, type or paste the URL from the Lyo Sharepoint Adapter perspective. Usually, this will consists of the adapter_uri+"/resource/"+Sharepoint Library+"/"+an identifier for the document in Sharepoint. For example: http://localhost:8080/OSLCSharepoint/resource/Empire/22, would refer to the Sharepoint document library and 22 is the identifier for the one of the saved documents.
  6. Save the workitem


If everything works correctly, when you hover over the workitem link you added above you should see a UI preview of a sharepoint document.


You should be able to select More and Less links in the hover dialog.

You should be able to select the link which will take you to document in Microsoft Sharepoint, and from there, you can open the document with Microsoft Word.


  • note: need to say anything about friend of adapter to RTC?
  • note: Detail the catalog, service provider, and dialogs..

Back to the top