lyo-adaptor-sample-modelling's People
lyo-adaptor-sample-modelling's Issues
Add the Getting Started section
Testing adaptor uses old client
on branch 4.0.0-snapshot
:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project adaptor-testing-webapp: Compilation failure: Compilation failure:
[ERROR] /Users/andrew/kth/_misc/misc-lyo/adaptors/sample-modelling/adaptor-testing-webapp/src/main/java/com/sample/testing/clients/RequirementsAdaptorClient.java:[68,9] cannot find symbol
[ERROR] symbol: class OslcQueryParameters
[ERROR] location: class com.sample.testing.clients.RequirementsAdaptorClient
[ERROR] /Users/andrew/kth/_misc/misc-lyo/adaptors/sample-modelling/adaptor-testing-webapp/src/main/java/com/sample/testing/clients/RequirementsAdaptorClient.java:[68,51] cannot find symbol
[ERROR] symbol: class OslcQueryParameters
[ERROR] location: class com.sample.testing.clients.RequirementsAdaptorClient
[ERROR] /Users/andrew/kth/_misc/misc-lyo/adaptors/sample-modelling/adaptor-testing-webapp/src/main/java/com/sample/testing/clients/RequirementsAdaptorClient.java:[70,9] cannot find symbol
[ERROR] symbol: class OslcQuery
[ERROR] location: class com.sample.testing.clients.RequirementsAdaptorClient
[ERROR] /Users/andrew/kth/_misc/misc-lyo/adaptors/sample-modelling/adaptor-testing-webapp/src/main/java/com/sample/testing/clients/RequirementsAdaptorClient.java:[70,31] cannot find symbol
[ERROR] symbol: class OslcQuery
[ERROR] location: class com.sample.testing.clients.RequirementsAdaptorClient
[ERROR] /Users/andrew/kth/_misc/misc-lyo/adaptors/sample-modelling/adaptor-testing-webapp/src/main/java/com/sample/testing/clients/RequirementsAdaptorClient.java:[71,9] cannot find symbol
[ERROR] symbol: class OslcQueryResult
[ERROR] location: class com.sample.testing.clients.RequirementsAdaptorClient
Problem accessing /adaptor-rm/services/requirements/query. Reason: Server Error
`Caused by:
javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/jena/ext/com/google/common/base/Strings
at org.apache.wink.server.internal.RequestProcessor.handleRequest(RequestProcessor.java:195)
at org.apache.wink.server.internal.servlet.RestServlet.service(RestServlet.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:837)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:583)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1174)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1106)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
at org.eclipse.jetty.server.Server.handle(Server.java:524)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:319)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:253)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoClassDefFoundError: org/apache/jena/ext/com/google/common/base/Strings
at org.eclipse.lyo.oslc4j.core.OSLC4JUtils.parseBooleanPropertyOrDefault(OSLC4JUtils.java:546)
at org.eclipse.lyo.oslc4j.core.OSLC4JUtils.alwaysAbbrevXML(OSLC4JUtils.java:95)
at org.eclipse.lyo.oslc4j.provider.jena.AbstractOslcRdfXmlProvider.getSerializationLanguage(AbstractOslcRdfXmlProvider.java:278)
at org.eclipse.lyo.oslc4j.provider.jena.AbstractOslcRdfXmlProvider.writeTo(AbstractOslcRdfXmlProvider.java:234)
at org.eclipse.lyo.oslc4j.provider.jena.OslcRdfXmlArrayProvider.writeTo(OslcRdfXmlArrayProvider.java:92)
at org.eclipse.lyo.oslc4j.provider.jena.OslcRdfXmlArrayProvider.writeTo(OslcRdfXmlArrayProvider.java:39)
at org.apache.wink.server.internal.handlers.FlushResultHandler.handleResponse(FlushResultHandler.java:199)
at org.apache.wink.server.handlers.AbstractHandler.handleResponse(AbstractHandler.java:38)
at org.apache.wink.server.handlers.ResponseHandlersChain.handle(ResponseHandlersChain.java:26)
at org.apache.wink.server.handlers.ResponseHandlersChain.handle(ResponseHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)
at org.apache.wink.server.handlers.AbstractHandler.handleResponse(AbstractHandler.java:39)
at org.apache.wink.server.handlers.ResponseHandlersChain.handle(ResponseHandlersChain.java:26)
at org.apache.wink.server.handlers.ResponseHandlersChain.handle(ResponseHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)
at org.apache.wink.server.handlers.AbstractHandler.handleResponse(AbstractHandler.java:39)
at org.apache.wink.server.handlers.ResponseHandlersChain.handle(ResponseHandlersChain.java:26)
at org.apache.wink.server.handlers.ResponseHandlersChain.handle(ResponseHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)
at org.apache.wink.server.internal.log.Responses.handleResponse(Responses.java:90)
at org.apache.wink.server.handlers.ResponseHandlersChain.handle(ResponseHandlersChain.java:26)
at org.apache.wink.server.handlers.ResponseHandlersChain.handle(ResponseHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:63)
at org.apache.wink.server.handlers.AbstractHandlersChain.run(AbstractHandlersChain.java:48)
at org.apache.wink.server.internal.RequestProcessor.handleRequestWithoutFaultBarrier(RequestProcessor.java:212)
at org.apache.wink.server.internal.RequestProcessor.handleRequest(RequestProcessor.java:154)
... 27 more
`
Enable automatic Travis builds for this repo
@jamsden I need you to enable Travis builds. You need to either:
- give me admin permissions on OSLC org
- log into Travis yourself, authorize it to work on the OSLC org, and enable builds on most of the code repos
The build config file is already committed to the repository.
Requirements CF is 404
http://localhost:8083/adaptor-rm/services/requirements/create shows 404 error.
On LyoD@master but should not be triggered by any of my changes (either was broken before or is due to Jersey 2.35 switch).
Reproduce the OSLC008 error
"OSLC008 OslcCoreMissingAnnotationException" is thrown by the Lyo Designer generated code when run with Jetty under Docker.
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=519475 for the old discussion.
Add the EPL license
What RDF format data is required to create a resource?
**hi:
I want to create a new resource. Can you provide an example of RDF?
Like this:**
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:oslc_blog="http://open-services.net/ns/bogus/blogs#">
<oslc_blog:Entry
rdf:about="http://example.com/blogs/entry/1">
<dcterms:title>I love trash</dcterms:title>
<dcterms:modified>2002-10-10T12:00:00-05:00</dcterms:modified>
<dcterms:content>
Anything dirty or dingy or dusty.
Anything ragged or rotten or rusty.
</dcterms:content>
<dcterms:creator>
<foaf:Person>
<foaf:name>Oscar T. Grouch</foaf:name>
</foaf:Person>
</dcterms:creator>
</oslc_blog:Entry>
Fix badges
-
use custom gitter room
-
remove failing SO badge
CORS is blocking UI preview
https://www.baeldung.com/cors-in-jax-rs is only available in JAX-RS 2.0 and handlers will have to migrated
Missing test package
Deploy convergence report on GH pages
Action to use: https://github.com/marketplace/actions/deploy-to-github-pages
Command to run: mvn site:site
File to copy: adaptor-rm-webapp/target/site/
under rm
Expected URL: oslc.github.io/lyo-adaptor-sample-modelling/rm/dependency-convergence.html or oslc.github.io/lyo-adaptor-sample-modelling/rm/index.html
Add CONTRIBUTING file
Regenerate the webapps using the latest version of the plugin
How to start the project?
Fails Validation
Add Travis build
Add CI build to ensure the sample code builds well.
ERROR com.sample.testing.TestingToolManager - Failed to query resources
`[qtp1996248711-24] INFO org.apache.wink.common.internal.application.ApplicationFileLoader - The runtime is loading the JAX-
RS application from jar:file:/C:/Users/1/Desktop/oslc/lyo-adaptor-sample-modelling/adaptor-testing-webapp/target/adaptor-te
sting-webapp-0.0.1-SNAPSHOT/WEB-INF/lib/wink-json4j-provider-1.2.1-incubating.jar!/META-INF/wink-application
[qtp1996248711-24] ERROR com.sample.testing.TestingToolManager - Failed to query resources
java.lang.RuntimeException: A javax.ws.rs.ext.MessageBodyReader implementation was not found for class org.eclipse.lyo.oslc
4j.core.model.ServiceProviderCatalog type and text/html;charset=utf-8 media type. Verify that all entity providers are cor
rectly registered. Add a custom javax.ws.rs.ext.MessageBodyReader provider to handle the type and media type if a JAX-RS e
ntity provider does not currently exist.
at org.apache.wink.client.internal.handlers.ClientResponseImpl.readEntity(ClientResponseImpl.java:122)
at org.apache.wink.client.internal.handlers.ClientResponseImpl.getEntity(ClientResponseImpl.java:65)
at org.apache.wink.client.internal.handlers.ClientResponseImpl.getEntity(ClientResponseImpl.java:52)
`
[qtp1996248711-24] INFO org.apache.wink.server.internal.RequestProcessor - The following error occurred during the invocati on of the handlers chain: NoClassDefFoundError with message 'org/apache/jena/ext/com/google/common/base/Strings' while proc essing GET request sent to http://localhost:8082/adaptor-testing/services/serviceProviders/1/testScripts/872 [qtp1996248711-24] ERROR org.apache.wink.server.internal.RequestProcessor - An unhandled exception occurred which will be p ropagated to the container. java.lang.NoClassDefFoundError: org/apache/jena/ext/com/google/common/base/Strings at org.eclipse.lyo.oslc4j.core.OSLC4JUtils.parseBooleanPropertyOrDefault(OSLC4JUtils.java:546) at org.eclipse.lyo.oslc4j.core.OSLC4JUtils.alwaysAbbrevXML(OSLC4JUtils.java:95) at org.eclipse.lyo.oslc4j.provider.jena.AbstractOslcRdfXmlProvider.getSerializationLanguage(AbstractOslcRdfXmlProvi der.java:278)
[WARNING] javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/jena/ext/com/google/common/base/Strings at org.apache.wink.server.internal.RequestProcessor.handleRequest (RequestProcessor.java:195) at org.apache.wink.server.internal.servlet.RestServlet.service (RestServlet.java:119) at javax.servlet.http.HttpServlet.service (HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle (ServletHolder.java:837) at org.eclipse.jetty.servlet.ServletHandler.doHandle (ServletHandler.java:583)
[WARNING] javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/jena/ext/com/google/common/base/Strings at org.apache.wink.server.internal.RequestProcessor.handleRequest (RequestProcessor.java:195) at org.apache.wink.server.internal.servlet.RestServlet.service (RestServlet.java:119) at javax.servlet.http.HttpServlet.service (HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle (ServletHolder.java:837) at org.eclipse.jetty.servlet.ServletHandler.doHandle (ServletHandler.java:583) at org.eclipse.jetty.server.handler.ScopedHandler.handle (ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle (SecurityHandler.java:548) at org.eclipse.jetty.server.session.SessionHandler.doHandle (SessionHandler.java:226) at org.eclipse.jetty.server.handler.ContextHandler.doHandle (ContextHandler.java:1174) at org.eclipse.jetty.servlet.ServletHandler.doScope (ServletHandler.java:511) at org.eclipse.jetty.server.session.SessionHandler.doScope (SessionHandler.java:185) at org.eclipse.jetty.server.handler.ContextHandler.doScope (ContextHandler.java:1106) at org.eclipse.jetty.server.handler.ScopedHandler.handle (ScopedHandler.java:141) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle (ContextHandlerCollection.java:213) at org.eclipse.jetty.server.handler.HandlerCollection.handle (HandlerCollection.java:119) at org.eclipse.jetty.server.handler.HandlerWrapper.handle (HandlerWrapper.java:134) at org.eclipse.jetty.server.Server.handle (Server.java:524) at org.eclipse.jetty.server.HttpChannel.handle (HttpChannel.java:319) at org.eclipse.jetty.server.HttpConnection.onFillable (HttpConnection.java:253) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded (AbstractConnection.java:273) at org.eclipse.jetty.io.FillInterest.fillable (FillInterest.java:95) at org.eclipse.jetty.io.SelectChannelEndPoint$2.run (SelectChannelEndPoint.java:93) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume (ExecuteProduceConsume.java:303) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume (ExecuteProduceConsume.java:148) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run (ExecuteProduceConsume.java:136) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob (QueuedThreadPool.java:671) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run (QueuedThreadPool.java:589) at java.lang.Thread.run (Thread.java:748) Caused by: java.lang.NoClassDefFoundError: org/apache/jena/ext/com/google/common/base/Strings at org.eclipse.lyo.oslc4j.core.OSLC4JUtils.parseBooleanPropertyOrDefault (OSLC4JUtils.java:546) at org.eclipse.lyo.oslc4j.core.OSLC4JUtils.alwaysAbbrevXML (OSLC4JUtils.java:95) at org.eclipse.lyo.oslc4j.provider.jena.AbstractOslcRdfXmlProvider.getSerializationLanguage (AbstractOslcRdfXmlProvider .java:278) at org.eclipse.lyo.oslc4j.provider.jena.AbstractOslcRdfXmlProvider.writeTo (AbstractOslcRdfXmlProvider.java:234) at org.eclipse.lyo.oslc4j.provider.jena.OslcCompactRdfProvider.writeTo (OslcCompactRdfProvider.java:86) at org.eclipse.lyo.oslc4j.provider.jena.OslcCompactRdfProvider.writeTo (OslcCompactRdfProvider.java:39) at org.apache.wink.server.internal.handlers.FlushResultHandler.handleResponse (FlushResultHandler.java:199) at org.apache.wink.server.handlers.AbstractHandler.handleResponse (AbstractHandler.java:38)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.