Problem:
- Product Name: Borland Application Server
- Product Version: 6.6, 6.7
- Product Component: Web Container
- Platform/OS Version: All
- JDK/Compiler Version: 1.4.2, 1.5.0
Unable to deploy Java Faces due to FacesContextFactory could not be found
A war file that contains Java Faces code cannot be deployed successfully, following error message is printed in partition log:
java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:256)
Resolution:
You can add the following listener into the web.xml:
com.sun.faces.config.ConfigureListener
If the above listener has been put into the web.xml and war file is still able not to deploy successfully, it may be related to the version of JSF related jars included in the war file.
Please follow the steps below to troubleshoot:
- Download well-known jsf example i.e. jsf-guessnumber from the Internet (JSP 1.2 example)
- Deploy to your partition and verify it can be deployed and the application is running successfully
- If jsf-guessnumber application is running fine, then you may proceed to upgrade your JSF related jars to the same version as jsf-guessnumber.
Author: Mathius Allo
#Security
#VisiBroker