It should be getting the name from facesContext.getExternalContext().getRequestContextPath() That was one of the code changes I added. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992553#3992553 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992553