IllegalStateException on JSF-2 OOTB Setup
While publishing the OOTB projects using JSF 2 jars, we are getting Error 500: java.lang.IllegalStateException: No Factories configured for this Application.
Error 500: java.lang.IllegalStateException: No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions! If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml. A typical config looks like this; <listener> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class> </listener>
Steps to Reproduce
Publish ChordiantEAR with OOTB Projects using JSF 2 Jars on Websphere Server, We get error message :
java.lang.IllegalArgumentException: Class com.ibm.ws.jsf.config.annotation.WASMyFacesAnnotationProvider is no org.apache.myfaces.spi.AnnotationProvider while publishing and javax.servlet.ServletException: SRVE0207E: Uncaught initialization exception. The login screen is rendered successfully upon log in, We get Error 500: java.lang.IllegalStateException: No Factories configured for this ..... (Error Message)
The exception is seen when JSP and JSF option in WebSphere Admin Console is selected as Default or Myfaces .
It is a mandatory step to select JSP and JSF option in WebSphere Admin Console as SUNRI 1.2 for JSF 1.2,JSF 2.0 and JSF 2.1.
0% found this useful