diff --git a/media/json-jackson/src/main/java/org/glassfish/jersey/jackson/internal/DefaultJacksonJaxbJsonProvider.java b/media/json-jackson/src/main/java/org/glassfish/jersey/jackson/internal/DefaultJacksonJaxbJsonProvider.java index a0944b5bda..955c9b7200 100644 --- a/media/json-jackson/src/main/java/org/glassfish/jersey/jackson/internal/DefaultJacksonJaxbJsonProvider.java +++ b/media/json-jackson/src/main/java/org/glassfish/jersey/jackson/internal/DefaultJacksonJaxbJsonProvider.java @@ -103,7 +103,7 @@ private List filterModules() { final List modules; try { modules = ObjectMapper.findModules(); - } catch (Exception e) { + } catch (Throwable e) { LOGGER.warning(LocalizationMessages.ERROR_MODULES_NOT_LOADED(e.getMessage())); return Collections.emptyList(); }