diff --git a/support/jaxrs/src/main/java/org/apache/shiro/web/jaxrs/ShiroFeature.java b/support/jaxrs/src/main/java/org/apache/shiro/web/jaxrs/ShiroFeature.java index 8274e76455..1cd11b29aa 100644 --- a/support/jaxrs/src/main/java/org/apache/shiro/web/jaxrs/ShiroFeature.java +++ b/support/jaxrs/src/main/java/org/apache/shiro/web/jaxrs/ShiroFeature.java @@ -55,9 +55,7 @@ public class ShiroFeature implements Feature { @Override public boolean configure(FeatureContext context) { - context.register(UnauthorizedExceptionExceptionMapper.class); - context.register(UnauthenticatedException.class); context.register(SubjectPrincipalRequestFilter.class); context.register(ShiroAnnotationFilterFeature.class);