Friday, September 19, 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.

6 comments:

  1. At 5. , i don't have "Ok" button (to save changes) , why ?

    ReplyDelete
    Replies
    1. Although this is too late to reply. but someone else can get benefit of it.
      The ok button is disabled or hidden if you are using WAS through RAD as WAS run with resources on the workspace mode so its not possible to configure shared library via RAD access. Use production server for configuring Shared Library or follow http://www-01.ibm.com/support/docview.wss?uid=swg21303233 link to get a detailed answer.
      Best of luck.

      Delete
  2. very good tutorial, help me a lot. thanks

    ReplyDelete
  3. First of all thanks to this site & for your great time.....
    if any body wants to learn the best Websphere Training In Hyderabad

    ReplyDelete