Cannot set *.jsf as a welcome page in web.xml in JBoss EAP 6
Issue
JBossdoesn't handle welcome files for JSF. It should render my index.jsf, but it just doesn't. I get a blank page.- Steps to reproduce:
- deploy
- go to
/welcome-bug/ - jboss show you a
404 page: JBWEB000065: HTTP Status 404-/welcome-bug/ - go to
/welcome-bug/index.jsf - it displays the page, so servlet mappings are ok.
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
...
<welcome-file-list>
<welcome-file>index.jsf</welcome-file>
</welcome-file-list>
</web-app>
Environment
JBoss Enterprise Application Platform (EAP) 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.