Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
1.1.4
-
None
-
None
Description
There is code in StartupServletContextListener that initializes the SerialFactory. Since portlets don't use the StartupServletContextListener, this never gets initialized and results in a NullPointerException.
See:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=93223
http://wiki.apache.org/myfaces/PortletSerialFactoryWorkaround
The handleSerialFactory() method should be in the FacesConfigurator instead of StartupServletContextListener. You can get the init params via ExternalContext.getInitParameter() instead of ServletContext.getInitParameter().