Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

IllegalStateException on JSF-2 OOTB Setup

SA-6361

Summary



While publishing the OOTB projects using JSF 2 jars, we are getting Error 500: java.lang.IllegalStateException: No Factories configured for this Application.

Error Messages



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)


Root Cause



The exception is seen when 
JSP and JSF option in WebSphere Admin Console is  selected as Default or Myfaces .


Resolution



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.

Published January 31, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us