Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Lyo/FAQ"

< Lyo
(Created page with "= Frequently Asked Questions about Lyo = == Lyo Designer == '''Q: The validation throws a ''"The feature 'extends' contains an unresolved proxy"'' error''' A: Mak...")
 
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
  
 
A: See the previous question.
 
A: See the previous question.
 +
 +
'''Q: Before regenation with a new Lyo Designer tools I has a service named <code>BugzillaChangeRequestService</code>, now I have <code>ServiceProviderService1</code>. Why?!'''
 +
 +
A: '''TODO/Jad'''
 +
 +
'''Q: Model validation fails with error ''&quot;The required feature 'vocabularies' of 'New ToolChain' must be set.&quot;'''''
 +
 +
A: Your model was created in Lyo Designer 2.2.x or earlier. You need to manually upgrade the model:
 +
 +
* Right-click the model file and open it with ''Sample Ecore Model Editor''.
 +
* Right click on the <code>Specification</code> node and click ''New Sibling &gt; Vocabularies''.
 +
 +
After saving file and reopening the diagram, the validation error should go away on subsequent revalidation.
 +
 +
'''Q: Model validation fails with ''&quot;The required feature 'domainSpecification' of 'New ToolChain::XYZ placeholder::<ServiceProviderCatalog>::<ServiceProvider>::<Service>' must be set&quot;.'''''
 +
 +
A. You somehow managed to create an adaptor without specifying it Domain Specification. OSLC requires ('''TODO/Jad''') every service to have one (Lyo Designer creates a default Service for a every new adaptor). Solution:
 +
 +
* double click on the adaptor in question (agree to create a diagram if needed)
 +
* click on the 'Service' circle and in the ''Properties'' panel switch to the ''Semantic'' tab.
 +
* set the ''Domain Specification'' to a non-null value.
 +
 +
After saving &amp; revalidating the error should go away.
 +
 +
== Lyo SDK ==
 +
 +
'''Q: An OSLC adaptor start on a strange URL that has my machine's hostname inside'''
 +
 +
A: In earlier versions, Lyo used <code>InetAddress.getLocalHost().getCanonicalHostName()</code> to get your hostname. In newer versions, you can set the <code>%servlet-package%.baseurl</code> context parameter in <code>web.xml</code> (where <code>%servlet-package%</code> is the package name where the <code>ServletListener</code> class is located) to something like <code>https://example.xyz</code>. The server will append the context path and will use it throughout the adaptor.

Latest revision as of 09:27, 6 April 2018

Frequently Asked Questions about Lyo

Lyo Designer

Q: The validation throws a "The feature 'extends' contains an unresolved proxy" error

A: Make sure you have cloned the lyo.tools repository and imported the org.eclipse.lyo.tools.domainmodels project. Once you have done that, close and reopen the modelling project you have been working on. Validation errors should go away.

Q: The validation throws a "The feature 'extends' has a reference to which cannot be found." error

A: See the previous question.

Q: Before regenation with a new Lyo Designer tools I has a service named BugzillaChangeRequestService, now I have ServiceProviderService1. Why?!

A: TODO/Jad

Q: Model validation fails with error "The required feature 'vocabularies' of 'New ToolChain' must be set."

A: Your model was created in Lyo Designer 2.2.x or earlier. You need to manually upgrade the model:

  • Right-click the model file and open it with Sample Ecore Model Editor.
  • Right click on the Specification node and click New Sibling > Vocabularies.

After saving file and reopening the diagram, the validation error should go away on subsequent revalidation.

Q: Model validation fails with "The required feature 'domainSpecification' of 'New ToolChain::XYZ placeholder::<ServiceProviderCatalog>::<ServiceProvider>::<Service>' must be set".

A. You somehow managed to create an adaptor without specifying it Domain Specification. OSLC requires (TODO/Jad) every service to have one (Lyo Designer creates a default Service for a every new adaptor). Solution:

  • double click on the adaptor in question (agree to create a diagram if needed)
  • click on the 'Service' circle and in the Properties panel switch to the Semantic tab.
  • set the Domain Specification to a non-null value.

After saving & revalidating the error should go away.

Lyo SDK

Q: An OSLC adaptor start on a strange URL that has my machine's hostname inside

A: In earlier versions, Lyo used InetAddress.getLocalHost().getCanonicalHostName() to get your hostname. In newer versions, you can set the %servlet-package%.baseurl context parameter in web.xml (where %servlet-package% is the package name where the ServletListener class is located) to something like https://example.xyz. The server will append the context path and will use it throughout the adaptor.

Back to the top