How to make websphere 8.5 use mojarra not myfaces

前端 未结 2 1740
清酒与你
清酒与你 2020-12-04 00:03

i\'ve a JSF2 (Richfaces 4.1.0) project running in eclipse. I\'m trying to run it on WAS 8.5 using mojarra jsf implementation (2.2.0). Then lib are provided with maven but th

相关标签:
2条回答
  • 2020-12-04 00:31

    Check this page Configuring JavaServer Faces implementation. It explains in details what you have to configure (basically isolated shared library and configure JSF settings)

    0 讨论(0)
  • 2020-12-04 00:51

    I wrote this blog to demonstrate how to make websphere 8.5 use mojarra not myfaces.

    1. Add the Mojarra listener to the required web.xml file. <listener><listener-class>com.sun.faces.config.ConfigureListener</listener-class></listener>
    2. Add the Mojarra JSF implementation, which are javax.faces-2.1.24.jar, jsf-api-2.1.24.jar and jsf-impl-2.1.24.jar, to the Environment > Shared Libraries.
      • javax.faces-2.1.24.jar (GroupId: org.glassfish)
      • jsf-api-2.1.24.jar (GroupId: com.sun.faces)
      • jsf-impl-2.1.24.jar (GroupId: com.sun.faces)
    3. After configuration shared libraries, the Websphere server must be Restart.
    4. After deploy your project, at the Enterprise Applications > staaec-web-1_0_10-SNAPSHOT_war(your project) > Class loader. Class loader order must be select (Classes loaded with local class loader first (parent last))
    5. For reference shared libraries to your project, you must go to Enterprise Applications > staaec-web-1_0_10-SNAPSHOT_war > Shared library references > Shared Library Mapping for mapping shared libraries to your project.
    6. Start your application.
    0 讨论(0)
提交回复
热议问题