concept MyFaces in category spring

This is an excerpt from Manning's book Spring Dynamic Modules in Action.
JavaServer Faces (JSF) is part of Java EE and provides a server-side component-based framework for implementing the MVC pattern. It’s intended to simplify the development and integration of UIs with their corresponding business entities and services. The request-handling lifecycle manages an in-memory UI representation and calls user entities as appropriate. Several implementations, such as the JSF reference implementation (RI) and MyFaces, are available as open source projects.
Problems with MyFaces 1.2.2 when used with Spring DM
There is a problem when using MyFaces 1.2.2 with Spring DM and Tomcat 6. MyFaces isn’t able to initialize a JspFactory instance for JSP 2.1, and a NullPointerException exception occurs in its Jsp21FacesInitializer class:
java.lang.NullPointerException
at org.apache.myfaces.webapp.Jsp21FacesInitializer
.initContainerIntegration(...)We opened an issue for this bug in the MyFaces JIRA under the identifier MYFACES-2442. The issue shows how to solve the problem by updating the isJsp21 method of the ContainerUtils class in MyFaces. We provide, in the book’s source code, a patched version of MyFaces 1.2.2 that fixes this bug.