users@jersey.java.net

[Jersey] 404, ExceptionMapper and ContainerResponseFilter

From: Oliver B. Fischer <mailsink_at_swe-blog.net>
Date: Wed, 12 Feb 2014 12:19:19 +0100

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