OSGi enRoute contains tutorials and examples which cover using the JAX-RS whiteboard. They’re pretty quick to run through.
https://enroute.osgi.org/Tutorial/ <https://enroute.osgi.org/Tutorial/> Best Regards, Tim > On 5 Sep 2018, at 15:18, atouat <[email protected]> wrote: > > Hello to everybody, > > I wanted to try out using Aries JAXRS Whiteboard, since there is released > version now. > > For this, I have donwloaded a new Karaf 4.2.1. I created a feature in order > to install Aries Jaxrs Whiteboard. > > The feature.xml looks like this: > > <?xml version="1.0" encoding="UTF-8" standalone="yes"?> > <features xmlns="http://karaf.apache.org/xmlns/features/v1.4.0" > name="aries-jaxrs-whiteboard"> > <feature name="aries-jaxrs-whiteboard" > description="aries-jaxrs-whiteboard" version="1.0.0"> > <feature>http-whiteboard</feature> > > <bundle>mvn:org.apache.aries.spec/org.apache.aries.javax.jax.rs-api/1.0.0</bundle> > > <bundle>mvn:org.apache.felix/org.apache.felix.http.servlet-api/1.1.2</bundle> > > <bundle>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.annotation-api-1.3/1.3_1</bundle> > <bundle>mvn:org.osgi/org.osgi.service.http.whiteboard/1.1.0</bundle> > <bundle>mvn:org.osgi/org.osgi.service.jaxrs/1.0.0</bundle> > <bundle>mvn:org.osgi/org.osgi.util.function/1.1.0</bundle> > <bundle>mvn:org.osgi/org.osgi.util.promise/1.1.0</bundle> > > <bundle>mvn:org.apache.aries.jax.rs/org.apache.aries.jax.rs.whiteboard/1.0.0</bundle> > </feature> > </features> > > I have now all bundles active. > > I tried the code example from @jbonofre (the giothub link returns an HTTP > 404 error). My bundle was deplyoed and active, but I could not access my > rest service. > > I tried to url http://loclahost:8181/myName but there was no response at > all. > > What am I missing? Can someone provide a working example with Aris JAXRS > Whiteboard please? > > > Greetings, > > Adnan > > > > -- > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
