Bom dia pessoal,
Há algum tempo, venho enfrentando problemas com o Interceptador do VRaptor. Não uso @Intercepts em lugar nenhum. Mesmo assim o VRaptor está interceptando algumas exceções que eu gostaria que fossem tratadas no web.xml.
Segue parte do meu web.xml
<error-page>
<exception-type>org.apache.shiro.authz.AuthorizationException</exception-type>
<location>/WEB-INF/jsp/erro/acessonegado.jsp</location>
</error-page>
<error-page>
<exception-type>org.apache.shiro.authc.AuthenticationException</exception-type>
<location>/WEB-INF/jsp/template/toindex.jsp</location>
</error-page>
Mas quando ocorre qualquer uma das duas exceções listadas acima, acontece essa exceção e a aplicação retorna erro 500:
br.com.caelum.vraptor.InterceptionException: org.apache.shiro.authc.AuthenticationException:
Como evitar esse problema?
Estou usando VRaptor 4 (4.2.0-RC3).
Valeu pessoal.