javaee / mojarra

PLEASE NOTE: This project has moved to Eclipse Foundation and will be archived under the JavaEE GitHub Organization. After Feb. 1, 2021, the new location will be github.com/javaee/mojarra. Mojarra - Oracle's implementation of the JavaServer Faces specification
https://github.com/eclipse-ee4j/mojarra
Other
164 stars 58 forks source link

CONFIGURATION FAILED! com.sun.faces.vendor.WebContainerInjectionProvider cannot be cast to com.sun.faces.spi.InjectionProvider #4216

Open javaserverfaces opened 7 years ago

javaserverfaces commented 7 years ago

Hello Team, 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!

Environment

Windos7, Java 8, Jetty9.37, Eclipse Juno, Maven Build tool,

Affected Versions

[2.2.14]

javaserverfaces commented 7 years ago

Reported by sbmp111

javaserverfaces commented 7 years ago

This issue was imported from java.net JIRA JAVASERVERFACES-4212

xinyuan-zhang commented 7 years ago

Closed, Could Not Reproduce

fernando1989mg commented 7 years ago

i have this error on weblogic 12c

xinyuan-zhang commented 7 years ago

@fernando1989mg
Hi, Can you provide a test war application for this bug?

fernando1989mg commented 7 years ago

@xinyuan-zhang Sure dude, clone the war from here. https://github.com/fernando1989mg/uploadsPublics.git

i'm playing with weblogic 12.2.1.2

edburns commented 7 years ago

Please see this important message regarding community contributions to Mojarra.

https://javaee.groups.io/g/jsf-spec/message/30

Also, please consider joining that group, as that group has taken the place of the old dev@javaserverfaces.java.net mailing list.

Thanks,

Ed Burns