Tuesday, September 9, 2014

Upgrading Mojarra in IBM WebSphere 8.5

  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) from http://search.maven.org/#artifactdetails%7Corg.glassfish%7Cjavax.faces%7C2.1.24%7Cjar
    - jsf-api-2.1.24.jar (GroupId: com.sun.faces) from http://search.maven.org/#artifactdetails%7Ccom.sun.faces%7Cjsf-api%7C2.1.24%7Cjar
    - jsf-impl-2.1.24.jar (GroupId: com.sun.faces) from http://search.maven.org/#artifactdetails%7Ccom.sun.faces%7Cjsf-impl%7C2.1.24%7Cjar

    After configuration shared libraries, the Websphere server must be Restart.
  3. 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))
  4. For reference the shared libraries to your project, you must go to Enterprise Applications > staaec-web-1_0_10-SNAPSHOT_war > Shared library references > Shared Library Mapping in order to map shared libraries to your project.
  5. After mapping, the shared libraries columns must display as image below.
  6. Start your application.

No comments:

Post a Comment