I guess it is because mapping is not found (not yet sure why) you can surely add org.apache.myfaces.INITIALIZE_ALWAYS_STANDALONE = true init parameter
Romain Manni-Bucau @rmannibucau http://www.tomitribe.com http://rmannibucau.wordpress.com https://github.com/rmannibucau 2014-12-18 17:04 GMT+01:00 Adam Cornett <[email protected]>: > 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
