user « JSP « JSF Q&A

1. After session timeout where does JBoss redirect users to?

After this is reached in JBoss:

where does it redirect users to? Can I change the page it redirects to?

2. How to show user-friendly error page instead of tomcat log with stack trace in browser when runtime exception is thrown?

I'm developing web-application with JSF. I tested it as I was able to but from time to time runtime exceptions are thrown. So, how to redirect user to special error page every ...