I have still the same problem. Interestingly Jersey knows all my
exception mappers. I check it via
Providers#getExceptionMapper(NotFoundException.class)
This method returned always my own implementation. But they are never
called. Instead Glassfish handles the NotFoundException and the
NotAcceptableExcetion.
Any idea why?
Bye,
Oliver
Am 12.02.14 12:19, schrieb Oliver B. Fischer:
> I am using GlassFish 4 to run a REST API and I want to handle all not
> matched requests by my own.
>
> Using a ExceptionMapper for a NotFoundException does not work. The
> mapper is never called. Bye why is it not called by Jersey? I can handle
> each 404 with a custom ContainerResponseFilter.
>
> Oliver