Hi,
I tried to migrate project from Primefaces 2.2.1 to Primefaces 3.0.M1, but I got exception:
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>
javax.faces.FactoryFinder.getFactory(FactoryFinder.java:196)
javax.faces.webapp.FacesServlet.init(FacesServlet.java:112)
Project is working when I revert to Primefaces 2.2.1. I tried Myfaces 2.0.4 and 2.0.5 with no success.
Tomcat 7.0.6
Primefaces 3.0.M1 and Myfaces 2.0.5 not working
-
- Posts: 7
- Joined: 19 Apr 2011, 16:22
after removing Primefaces resource servlet from web.xml, it starts working:
<servlet>
<servlet-name>Resource Servlet</servlet-name>
<servlet-class>org.primefaces.resource.ResourceServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>Resource Servlet</servlet-name>
<servlet-class>org.primefaces.resource.ResourceServlet</servlet-class>
</servlet>
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
org.primefaces.resource.ResourceServlet doesn't exist in 3.0.M1, it was also deprecated in 2.2+.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 60 guests