I'm afraid that won't work. The welcome page is dispatched internally by the server. For
Tomcat, at least (and that includes
JBoss), welcome, error, and login pages don't get routed through the standard channels, and therefore the FacesServlet doesn't get invoked.
Instead, setup a standard JSP that forwards to the JSF welcome page. It's annoying, but it works.