Webapp component with Java Server Faces (JSF) implementation failed to get deployed to TIBCO ActiveMatrix Service Grid,

Webapp component with Java Server Faces (JSF) implementation failed to get deployed to TIBCO ActiveMatrix Service Grid,

book

Article ID: KB0085487

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix Service Grid -
Not Applicable -

Description

Description:
When deploying a Webapp with JSF implementation to TIBCO ActiveMatrix Service Grid node, the deployment fails with an exception described in the Symptoms section of this KB.

Symptoms:
The JSF web application failed to initialize properly and the deployment fails with the following exception.
******************************
java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
        at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:804)
        at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:306)
        at javax.faces.webapp.FacesServlet.init(FacesServlet.java:166)
*******************************
Cause:
JSF ConfigureListener registered in the JSF TLD file is not getting executed.

Issue/Introduction

Webapp component with Java Server Faces (JSF) implementation failed to get deployed to TIBCO ActiveMatrix Service Grid,

Resolution

To resolve the problem, manually register the JSF ConfigureListener by adding the following entry to the webapp's web.xml file. 

<listener>
    <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>