When the Faces Servlet is declared in a web-fragment.xml file contained in a library jar of my WAR, JSF doesn't start up correctly. However when I deploy the same code to WildFly 8.2 the same error doesn't occur. According to the Servlet's JavaDoc ( http://docs.oracle.com/javaee/6/api/javax/faces/webapp/FacesServlet.html) it can be mapped in web-fragment.xml
Removing the servlet deceleration from the web-fragment.xml, or moving it to the web.xml also resolves the issue I'm seeing. However I need to change the default mapping of the JSF servlet and instead of having the same code in all of my web.xml files I'd like to have the settings in a shared library that all of my WARs already include. I have a minimal example project here: https://github.com/acornett/jsf-servlet-test Is there something I'm missing, or have I stumbled upon a bug? - Adam Cornett
