I'm using JBoss 6, my application is configurate to be used as root (I removed Root.war), and when user gets 403 error JBoss page is shown instead of mine. When I add in my web.xml appropriate settings like:
it does not work. I don't know why, because it is my filter which sets :
httpResponse.setStatus( HttpServletResponse.SC_FORBIDDEN );
I tried to find global web.xml file to configurate it there (although I'm not sure that I should do it there), no success as well... what's wrong? custom error page for 404 and other works well, but not for 403..
httpResponse.sendError( 403, "Forbidden" );
httpResponse.setStatus( ... ); in Filter..