From user-return-20334-archive-asf-public=cust-asf.ponee.io@karaf.apache.org Tue Apr 2 13:29:48 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 9EDC3180668 for ; Tue, 2 Apr 2019 15:29:47 +0200 (CEST) Received: (qmail 10270 invoked by uid 500); 2 Apr 2019 13:29:41 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 10260 invoked by uid 99); 2 Apr 2019 13:29:41 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Apr 2019 13:29:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 597D5C25BA for ; Tue, 2 Apr 2019 13:29:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.313 X-Spam-Level: ** X-Spam-Status: No, score=2.313 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id NnQZuC2YUY5S for ; Tue, 2 Apr 2019 13:29:38 +0000 (UTC) Received: from n3.nabble.com (n3.nabble.com [162.255.23.22]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 382F060FBD for ; Tue, 2 Apr 2019 13:29:38 +0000 (UTC) Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id EAC8F130231F3 for ; Tue, 2 Apr 2019 06:29:37 -0700 (MST) Date: Tue, 2 Apr 2019 06:29:37 -0700 (MST) From: xav To: user@karaf.apache.org Message-ID: <1554211777959-0.post@n3.nabble.com> In-Reply-To: References: <1554193657529-0.post@n3.nabble.com> <1ba280f8-2789-7019-e865-5495b1d73ae9@nanthrax.net> Subject: Re: ExceptionMapper on Aries JAX-RS Whiteboard on karaf 4.2.3 and above. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi tim, I use JAXRS resource My RestExceptionMapper is coded like this @JaxrsExtension @Component(service = RestExceptionMapper.class, name = "RestExceptionMapper", immediate = true) public class RestExceptionMapper implements ExceptionMapper ........ My ressources @Component( property = { "osgi.jaxrs.resource=true" }, service = SayHelloRestService.class, name = "SayHello", immediate = true) @Path("/sayhello") public class SayHelloRestService { @GET @Path("{name}") @Produces(MediaType.APPLICATION_JSON) public String sayHello(@PathParam("name") final String name) throws RestCommonException { Name namee = new Name (helloService.sayHello(name)); throw new RestCommonException("pouet"); } And it's the same thing!!! Thx for your help -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html