Hi,

My example works for the http whiteboard, but not Aries JAXRS whiteboard. For JAXRS, I provided example based on CXF.

If CXF is not convenient for you, I can add a Aries JAXRS Whiteboard example, no problem.

If your case, 404 means that the "listener servlet" has not been deployed or not on the alias you expect.

Did you check what you have with http:list command ?

Regards
JB


On 05/09/2018 16:18, atouat 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

Reply via email to