I have not annotated it with Provider, but instead registering it in
the application directly like:
public class MyApplication extends ResourceConfig {
public MyApplication() {
register(MyGlobalExceptionMapper.class);
Note that I'm also using the Spring integration but I assume that
should cause no issues.