I would like to implement a server-level error page that would handle exceptions. E.g., an application causes a 500 error, I need to prevent it from dumping the stack on screen. I know I can does this on a per-app basis with error-page in web.xml, but is there a clean way to handle these for all apps? Perhaps a valve or ROOT-level error page?
Thanks all
You could try adding the error handling to server/xxx/deploy/jboss-web.deployer/conf/web.xml. My understanding is that this web.xml provides the defaults for ass web apps.