Hi Tim, Jb,

It's works,

Here the solution:

Extension
@Component(property = {"*osgi.jaxrs.extension=true*"})
@Produces(MediaType.APPLICATION_JSON)
public class RestExceptionMapper implements
ExceptionMapper<RestCommonException> {
......
......
}

Ressource

@Component(property = { "*osgi.jaxrs.resource=true*" },
service=SayHelloRestService.class, immediate = true)
@Produces(MediaType.APPLICATION_JSON)
@Path("sayhello")
public class SayHelloRestService {
....
....
}

The solution was, provides right property for ressources, and extension.

Thx for your links, and help.

Regards







--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Reply via email to