Skip to content
Lynxwork

Lynxwork SystemWeaver OSLC Server - Installation and Usage Guide

The Lynxwork SystemWeaver OSLC Server is provided as a standard Web Application Archive (.war) file. It can be deployed in any compatible servlet container, such as Apache Tomcat or Eclipse Jetty. It can also be packaged and executed within a Docker container.

This guide describes how to deploy the application:

  • In a Docker container
  • In an Apache Tomcat environment

The software distribution includes the following files:

File Purpose
systemweaver.war The deployable web application archive
lynxwork.lic The required license file
tomcat-context-template.xml A template for Apache Tomcat deployment
docker-compose-template.yml and Dockerfile A template for Docker-based deployment

Preparations

Before starting, make sure you have:

  • {connector_base_url} — The base URL that points to the location where the SystemWeaver OSLC Server will be deployed.
    • For example, https://systemweaver-connector.my-organisation.com/
    • Ensure the HTTPS protocol is used with a trusted certificate.
  • {systemweaver_base_url} — The base URL of SystemWeaver’s REST APIs. For example, https://systemweaver.my-organisation.com

Setup OAuth 2 access to SystemWeaver with Entra ID

The SystemWeaver Connector accesses the SystemWeaver API using “OAuth 2.0 authorization”.

  1. Register an application that represents the SystemWeaver Connector in the Microsoft Entra admin center, by following these instructions. Notes:
    1. Under Configure platform settings, you are given a number of alternatives.
      1. Select the Web platform.
      2. As a Redirect URI, enter the URL {connector_base_url}/oslc/oauth2/callback
    2. Under Add credentials, you are provided with 3 Options
      1. Adopt Option 2: Add a client secret.
      2. As explained in the instructions, make a record of the secret’s value, since it is never displayed again once you leave the page. We refer to this value as {client_secret}
  2. Select the created Application. In case you lost track:
    1. Go to the Microsoft Entra admin center
    2. Browse to Identity > Applications > App registrations
    3. Select the newly created Application.
  3. Select Overview, and make a record of the following parameters:
    1. Display name - We refer to this value as {client_name}
    2. Application (client) ID - We refer to this value as {client_id}
    3. Directory (tenant) ID - We refer to this value as {tenant_id}
  4. Grant the SystemWeaver Connector the minimal set of privileges it needs. The application relies on “delegated access”, where the Connector calls services on behalf of a signed-in user.
    1. Select API permissions > Add a permission > Microsoft Graph > Delegated permissions
    2. Select: User.Read

Deploy within a Docker container

  1. Install Docker Engine from the Docker website.
  2. Create a deployment directory of your choice (e.g. /opt/systemweaverconnector on Linux, or C:\systemweaverconnector on Windows) and copy the provided files into it:
    • systemweaver.war
    • Dockerfile
    • docker-compose-template.yml
  3. Rename docker-compose-template.yml to docker-compose.yml in that deployment directory.
  4. Copy the license file into a suitable location. For example, copy it alongside docker-compose.yml making the setup self-contained. Update the corresponding volume mapping in docker-compose.yml: /opt/systemweaverconnector/lynxwork.lic:/var/lib/jetty/lynxwork.lic
  5. Create an oauth subfolder in a suitable location. For example, alongside docker-compose.yml. Update the corresponding volume mapping in docker-compose.yml: /opt/systemweaverconnector/oauth:/var/lib/jetty/oauth
  6. Edit docker-compose.yml and replace all remaining values enclosed in {} with the appropriate configuration values for your environment.
  7. Run the Connector from the deployment directory: docker compose up -d
  8. Access the application at {connector_base_url}.

Deploy in Apache Tomcat

  1. Install Java 21 JDK from Adoptium.
  2. Install Tomcat 10 from the Apache Tomcat website. We refer to the Tomcat installation directory as <TOMCAT_HOME>.
  3. Copy the systemweaver.war file to Tomcat’s webapps directory, typically located at <TOMCAT_HOME>/webapps/
  4. Copy the provided lynxwork.lic license file to <TOMCAT_HOME>/lynxwork.lic.
  5. Create an oauth folder at <TOMCAT_HOME>/oauth/. Ensure Tomcat has write permissions to this folder.
  6. Copy and rename the provided tomcat-context-template.xml to <TOMCAT_HOME>/conf/Catalina/localhost/systemweaver.xml
  7. Edit the copied context file and replace all values enclosed in {} with the appropriate configuration values for your environment.
  8. Restart Tomcat.
  9. Access the application at {connector_base_url}

Configuring Consumer Applications

The SystemWeaver OSLC Server implements the OSLC standard. The Connector is currently designed to support the following resource types:

  • Requirement - http://open-services.net/ns/rm#Requirement

Connecting to the server from an engineering application is typically done following OSLC’s discovery capabilities. Consult the manual of the consumer application for further configuration details.

Example Configuration - CodeBeamer

For CodeBeamer, a typical “oslc” entry under the “Application Configuration” would be:

"oslc" : {
"enabled" : true,
"pageSize" : 25,
"syncIntervalInSeconds" : 3600,
"OslcServers" : {
"AuthenticationScheme" : "BASIC",
"RootCatalogURI" : "{connector_base_url}/oslc/catalog/singleton",
"ServerID" : "SystemWeaver",
"ServerType" : "MODELER",
"Domains" : {
"Name" : "Requirement Management",
"Url" : "http://open-services.net/ns/rm#",
"LinkTypes" : [
{"text" : "Validated By"},
{"text" : "Validates"},
{"text" : "Decomposed By"},
{"text" : "Decomposes"},
{"text" : "Refines"}
]
},
"Parameters" : [
{
"resourceType" : "http://open-services.net/ns/rm#Requirement",
"selectAttributes" : "dcterms:title,dcterms:identifier,oslc:shortTitle",
"whereAttributes" : "dcterms:title,dcterms:identifier,oslc:shortTitle"
},
{
"resourceType" : "http://open-services.net/ns/rm#RequirementCollection",
"selectAttributes" : "dcterms:title,dcterms:identifier,oslc:shortTitle",
"whereAttributes" : "dcterms:title,dcterms:identifier,oslc:shortTitle"
}
],
"ServerAdmin" : {
"userName" : "{username}",
"userPassword" : "{password}"
},
"PreviewConfig" : {
"height" : 550,
"width" : 710
}
}
}

Usage Guide

To create traceability links to SystemWeaver items, consult your consumer application’s manual for details.