There could be several reasons... depends on your set up. Can you show your exception mapper class and jersey configuration?
Cheers,
Pedro
-----Original Message-----
From: Oliver B. Fischer [mailto:mailsink_at_swe-blog.net]
Sent: 12 February 2014 11:19
To: users
Subject: [Jersey] 404, ExceptionMapper and ContainerResponseFilter
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