>> I don't know if, the aries withboard project (1.0.4) has implemented the >> spec?
As Aries JAX-RS Whiteboard is the reference implementation I can say with reasonable confidence that it has implemented the specification. The issue is that the application code you have supplied isn’t using the JAX-RS whiteboard specification to provide the exception mapper. It doesn’t even appear to be registering the Exception Mapper as a service. The JAX-RS Whiteboard specification does explain what to do here <https://osgi.org/specification/osgi.cmpn/7.0.0/service.jaxrs.html#service.jaxrs.extension.services> and has an example here <https://osgi.org/specification/osgi.cmpn/7.0.0/service.jaxrs.html#service.jaxrs.extension.example>. Use of JAX-RS extensions is also covered in the MicroService tutorial at OSGi EnRoute <https://enroute.osgi.org/tutorial/030-tutorial_microservice.html#the-rest-service>. You will note that all of these examples register the extension as a service and use the @JaxrsExtension annotation to add the necessary service properties. Best Regards, Tim > On 2 Apr 2019, at 10:30, Jean-Baptiste Onofré <[email protected]> wrote: > > Do you have a JAXRS Application containing the ExceptionMapper or are > you using JAXRS resource ? > > Regards > JB > > On 02/04/2019 11:28, xav wrote: >> Hi JB, >> >> Yes I did, but it's does not work!! >> The Exception is throw in the console, and not trap to put my own http >> response. >> So ??? >> I don't know if, the aries withboard project (1.0.4) has implemented the >> spec? >> >> Thx >> >> Xav >> >> >> >> -- >> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html >> > > -- > Jean-Baptiste Onofré > [email protected] > http://blog.nanthrax.net > Talend - http://www.talend.com
