https://github.com/apache/shiro/blob/75123583017b3c9091e99e44775046ed5b3c4a3a/support/jaxrs/src/main/java/org/apache/shiro/web/jaxrs/ShiroFeature.java#L60 It should be UnauthenticatedExceptionExceptionMapper not UnauthenticatedException
shiro/support/jaxrs/src/main/java/org/apache/shiro/web/jaxrs/ShiroFeature.java
Line 60 in 7512358
It should be UnauthenticatedExceptionExceptionMapper not UnauthenticatedException