7.9.4.2 Configure WebSphere Shared Library to Support Jersey 2x and Jackson 2.9x Libraries

Perform the following configuration to set WebSphere shared library to support jersey 2x and Jackson 2.9x libraries.
  1. Click Environment from the menu on the left to expand and view the list. Click Shared Libraries to open the Shared Libraries window.

    Figure 7-40 WebSphere Shared Libraries


    Click Environment from the menu on the left to expand and view the list. Click Shared Libraries to open the Shared Libraries window.

  2. Enter the following details:
    1. Name: Enter a uniquely identifiable name.
    2. Description: Enter a valid description.
    3. Classpath: Enter the absolute path where the JARs related to Jersey 2.x and Jackson 2.9x are copied. These jars are available in the <OFSAA_HOME>/ficweb/webroot/externallib/WEBINF/lib/ directory after creation of the EAR file. Another format of representation of the path is <ofsaa_deployed_area_location>/externallib/WEBINF/lib/.
  3. Select Use an isolated class loader for this library.
  4. Click OK to save to master configuration.
  5. Select the application or module and map the shared libraries. Click OK. In the following figure, ofsa is selected.

    Figure 7-41 WebSphere Shared Library References


    Select the application or module and map the shared libraries. Click OK. In this figure, ofsa is selected.

  6. From the Shared Library Mapping window, move the required shared libraries from Available to Selected. In the following figure, JERSEY2x is selected.

    Figure 7-42 WebSphere Shared Libraries Mapping Selection


    This illustration displays the WebSphere Shared Libraries Mapping Selection. Click Ok for the selected JERSEY2x. Similarly, select the next application or module and repeat the procedure.

  7. Click OK.
  8. Similarly, select the next application or module and repeat the procedure from steps 5 to 7.

    Figure 7-43 WebSphere Shared Libraries Select Next Application


    Select the next application or module from the Shared Library Mapping window, move the required shared libraries from Available to Selected, and click OK.

  9. Disable the built-in JAX-RS via JVM property.
    1. Navigate to the WebSphere admin console in Servers > WebSphere Application Servers > yourServerName.
    2. In the Server Infrastructure section, go to Java and Process Management > Process definition> Java Virtual Machine > Custom properties.
    3. Add the following property:
      com.ibm.websphere.jaxrs.server.DisableIBMJAXRSEngine=true
  10. Restart the application.