I resolved switched from Mojarra 2.2.4 to MyFaces 2.2.0 following these steps:
- remove Mojarra dependecies in my POM
add MyFaces dependecies in my POM:
<dependency> <groupId>org.apache.myfaces.core</groupId> <artifactId>myfaces-api</artifactId> <version>2.2.0</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.myfaces.core</groupId> <artifactId>myfaces-impl</artifactId> <version>2.2.0</version> <scope>compile</scope> </dependency>
change listener-class on my web.xml
<listener> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
add context-param on my web.xml
<context-param> <description>Defines which packages to scan for beans, separated by commas. Useful for when using maven and jetty:run (version 6) or tomcat:run </description> <param-name>org.apache.myfaces.annotation.SCAN_PACKAGES</param-name> <param-value>eu.dedalus</param-value>
.5 remove jsf-api e jsf-impl from WEB-INF/lib.
.6 [ECLIPSE ONLY]
add myfaces.api and myfaces-impl libraries in Build Path using M2REPO variable and remove jsf-api and jsf-impl libraries.