Lors de l’installation de l’application sur un nouveau poste, Tomcat plantait avec l’erreur suivante :
[java] 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!
[java] 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. [java] A typical config looks like this;
[java] <listener> [java] <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
[java] </listener>
Comme indiqué dans le message d’erreur lui-même, il a fallu ajouter ce listener dans le fichier web.xml :
<listener> <listener-class> org.apache.myfaces.webapp.StartupServletContextListener </listener-class> </listener>
Par contre je ne sais pas pourquoi le problème ne s’est pas produit sur les précédentes installations…
Powered by ScribeFire.