This content has been marked as final.
Show 1 reply
-
1. Re: Customize "AccessDeniedException" default error message.
kmranganathan Nov 1, 2016 5:18 AM (in response to g_r)If you find out what exception is being thrown (check the logs), one of the ways to do is to add this in the configuration, like:
.redirectTo("/faces/error.xhtml").whenException(AuthenticationRequiredException.class)