dev@javaserverfaces.java.net

JSF2.2.14 ERROR: CONFIGURATION FAILED! com.sun.faces.vendor.WebContainerInjectionProvider cannot be cast to com.sun.faces.spi.InjectionProvider

From: Satish Mali Patil <Satish.Mali.Patil_at_evry.com>
Date: Mon, 9 Jan 2017 15:17:10 +0000

Hello Friends,

I am migrating java code written using JSF1.2 to JSF2.2.14. I am getting below error:

SEVERE: Critical error during deployment:
com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! com.sun.faces.vendor.WebContainerInjectionProvider cannot be cast to com.sun.faces.spi.InjectionProvider
                at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:453)
                at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:227)
                at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:800)
                at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:444)
                at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:791)
                at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:294)
                at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)
                at org.eclipse.jetty.maven.plugin.JettyWebAppContext.startWebapp(JettyWebAppContext.java:296)

The same code works fine in JSF 2.1.7 but does not work in 2.2.14. Please let me know if you have any solutions on how to fix this issue.
Please help!

Regards,
Satish