JUnit テストを実行すると、このエラーが発生し続けます。これは、Jersey カスタム ExceptionMappers を .jar ファイルから .war ファイルにインポートしようとしたときにのみ発生します。
マッパーが .war ファイルにある場合、マッパーが正しく動作することはわかっていますが、マッパーを必要とする 2 つの別個のモジュールがあり、マッパーを複製して各モジュールに 1 つ持つことは避けたいと考えています。
[RxCachedThreadScheduler-1] ERROR
c.s.j.s.container.ContainerResponse - The exception contained within
MappableContainerException could not be mapped to a response, re
throwing to the HTTP container
search.internal.datapower.InvalidUserInfoException:
WRRC003: The required X-UserInfo header was missing from the
request.
.jar ファイルから ExceptionMapper をインポートする方法を知っている人はいますか?