java.lang.IllegalStateException:Could not find backup for factory javax.faces.application.ApplicationFactory

That may happen if your webapp’s runtime classpath is polluted with multiple JSF impls/versions. The org.apache.myfaces entries in the stack trace tells that you’re using MyFaces. This problem thus suggests that you’ve another JSF implementation like Mojarra in the webapp’s runtime classpath which is conflicting with it. It’s recognizable by jsf-api.jar, or jsf-impl.jar, or javax.faces.jar. If you remove all of them, then this problem should disappear.

Or, if you actually intented to use Mojarra instead of MyFaces (you did namely not explicitly state the intented JSF impl/version anywhere in your question, but you just generically stated the JSF spec as in “JSF 2.0”, so perhaps you actually had no clue what you was all doing), then you should be removing myfaces-*.jar files from your webapp.

See also:

Leave a Comment