How to make websphere 8.5 use mojarra not myfaces

给你一囗甜甜゛ 提交于 2019-11-27 15:50:48

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.
Gas

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!