users@jersey.java.net

[Jersey] Jersey 2 Spring and ExceptionMapper workaround

From: Doyle, Brendan <brendan.doyle_at_ie.verizon.com>
Date: Wed, 12 Feb 2014 12:25:07 +0000

Hi

There is a known issue ( https://java.net/jira/browse/JERSEY-2063 ) with Jersey 2 that when you deploy with spring support your ExceptionMappers stop working. I ran into this when trying to migrate from Jersey 1 to 2.5.1. What I found is that you can have exception mappers or spring support but not both.

I tried earlier 2.x versions but they also have the same problem.

Has anyone figured out a way to workaround this?


Verizon Ireland Limited - registered in Ireland - registered number 224334 - registered office at Erne Street, Dublin 2, Ireland - VAT number 8224334A