9.2.2 Configuring WebSphere for Application Deployment

This section covers the following topics:

Configuring the Web.XML file

In the web.xml file in the <FIC_HOME>/ficweb/webroot/WEB-INF path, add the following code:
com.ofs.aai.rest.v1.service.wf.PMFService
<param-value>com.ofs.aai.rest.v1</param-value>
</init-param>
<init-param>
<param-name>jersey.config.server.provider.classnames</param-name>
<param-value>com.ofs.aai.rest.v1.service.impl.UserService;com.ofs.aai.rest.v1.service.impl.
FunctionService;com.ofs.aai.rest.v1.service.impl.GroupService;com.ofs.aai.rest.v1.service.impl.RoleService;
com.ofs.aai.rest.v1.service.impl.Infodom;
com.ofs.aai.rest.v1.report.impl.I18nService;com.ofs.aai.rest.v1.report.impl.ActionService;
com.ofs.aai.rest.v1.report.impl.AuditTrailService;com.ofs.aai.rest.v1.report.impl.ReportService;
com.ofs.aai.rest.v1.impl.DBDetailServices;com.ofs.aai.rest.v1.impl.LogService;
com.ofs.aai.rest.v1.impl.Services;com.ofs.aai.rest.v1.impl.WSService;com.ofs.aai.rest.v1.service.wf.PMFService
<param-value>

After you add the code as shown, you must redeploy the application by executing the ant.sh file. Execute the command:

manageprofiles.sh -validateAndUpdateRegistry

Configuring 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 Jackson2.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.
  2. Enter details as shown in the following:
    • Name: Enter a unique identifiable name.
    • Description: Enter a valid description.
    • 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>/utility/externallib/WEB-INF/lib directory after creation of the EAR file.
  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 illustration, ofsa is selected.
  6. From the Shared Library Mapping window, move the required shared libraries from Available to Selected. In the following illustration, JERSEY2x is selected.
  7. Click OK.
  8. Similarly, select the next application or module and repeat the procedure from steps 5 to 7.
  9. Disable the built-in JAX-RS via JVM property.
    1. Go to WebSphere admin console in Servers > WebSphere Application Servers > yourServerName.
    2. In 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.