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<RestCommonException>
........
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