could not find Factory: javax.faces.application.ApplicationFactory

前端 未结 2 346
一生所求
一生所求 2020-12-21 04:25

Hi i am trying to use following technologies together:

  • JSF 2.1.0
  • ICEFaces 2.0.2 which is according to their document
相关标签:
2条回答
  • 2020-12-21 04:55

    I solved this problem using two approaches :

    1.Two different version jsf were removed (eg. jsf 1.x or jsf2.x) or two different jsf implementation were removed (mojarra jsf or myfaces) from project .And I used only one implementation either mojarra (or myfaces) but not both .I had done same in case of jsf different version jars (i.e jsf 2.x jars were used)not jsf 1.x.

    2.Remove @ManagedBean annotation from interfaces.

    0 讨论(0)
  • 2020-12-21 04:59

    JSF 2.1 requires a Servlet 3.0 compatible container, yet Tomcat 6 is only a Servlet 2.5 compatible container. You've 2 options:

    1. Downgrade JSF 2.1 to JSF 2.0 (Mojarra 2.0 is currently at 2.0.6).
    2. Upgrade Tomcat 6.0 to Tomcat 7.0 (and change web.xml root declaration conform Servlet 3.0).

    If you choose option 2 (upgrading to Tomcat 7.0), then you should upgrade Mojarra 2.1.0 to at least Mojarra 2.1.1 (it's currently already at 2.1.3). This is required because Mojarra 2.1.0 contains a bug in the annotation scanner which makes it incompatible with Tomcat and Jetty.

    See also:

    • Mojarra 2.1.0 - FCS doesn't work with tomcat 7
    0 讨论(0)
提交回复
热议问题