@sonofel, this error is due to you not hitting the registered URL under the context. A context in Maven/Jetty is configured like this: https://github.com/OSLC/lyo-adaptor-sample-modelling/blob/master/adaptor-rm-webapp/pom.xml#L102. You can also use an “emtpy” context <contextPath>/</contextPath>
but that may cause some extra issues. The “registered URL” needs to be:
- Mapped to a servlet.
- The configured JAX-RS Application class shall register all the JAX-RS Services (Resources).
- Those registered classes shall have the necessary annotations (JAX-RS and Lyo) on the class and method (handler) level.
If you have limited Maven exposure, maybe try to clone https://github.com/OSLC/lyo-adaptor-sample-modelling/tree/master/adaptor-rm-webapp and start this web app and see if it works for you. If it does, just go ahead modifying code for your needs.
There is naïve client inside for retrieving an OSLC Service Provider Catalog of another OSLC Server. Most OSLC Servers have an SPC (see this for more info), which you should always start from when exploring (and for IBM tools, it’s usually a Jazz RootServices document before you can access resources that require auth; we have a tutorial here on how to make one but you only need it if you want to add your server as a Jazz OSLC Friend).
For now you can ignore the fact all that code was generated, but later you may want to install Lyo Designer and explore the model (project in an adjacent folder in the repo). Good luck!