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

前端 未结 2 1004
长发绾君心
长发绾君心 2021-01-20 23:58

I have upgraded application to use javax.faces-2.2.4 and primefaces-4.0 jars.After deploying my application to weblogic from myeclipse I am getting below error:

         


        
2条回答
  •  臣服心动
    2021-01-21 00:42

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

    One of more common causes of this exception is that the webapp's runtime classpath is polluted with multiple different JSF API versions which are colliding/confusing each other.

    This is likely also the case in your case. Weblogic itself already ships with JSF bundled, however you're supplying another one along with your webapp. So effectively you end up with two different versioned JSF APIs in the webapp's runtime classpath.

    I don't do Weblogic, but basically you have 2 options:

    1. Tell Weblogic to not load its bundled JSF, so that effectively only the webapp-bundled JSF is loaded.
    2. If you intend to upgrade Weblogic's bundled JSF version, then don't upgrade it via your webapp, but directly in Weblogic itself. Or perhaps, upgrade the whole server to a newer version if the desired JSF API version is incompatible with the Servlet version of the server (JSF 2.2 requires Servlet 3.0).

    Consult its admin documentation for clues.

提交回复
热议问题