Step 1: Deploying the Rule Execution Server management archive

Deploy the archive file to use Rule Execution Server on the Liberty profile.

About this task

Configuring the Rule Execution Server console on Liberty involves the following:
  • Copy the Rule Execution Server archive file to the Liberty directory for deployment.
  • Prepare the database and define the datasource. Unless you are using Derby Embedded, make sure that you have already created the database (see Creating the Decision Server database).
  • Define security access. Rule Execution Server uses the roles resAdministrator, resConfigManager, and resMonitor (see Rule Execution Server console and user roles).


  1. Create a Liberty profile server by running the server command from <WLP_HOME>/bin. For example: server create odm
  2. Copy the file <InstallDir>/executionserver/applicationservers/WLP855/res.war to <WLP_HOME>/usr/servers/<SERVER_NAME>/apps.
    Note: The .war file supports version of Liberty.
  3. Copy the database driver to a directory that you will specify in the server.xml file when you declare the data source. For example, copy the Derby embedded database driver derby.jar from <InstallDir>/shared/tools/derby/lib or from the web to the <WLP_HOME>/usr/shared/resources/derby directory.
  4. In <WLP_HOME>/usr/servers/<SERVER_NAME>/server.xml, add the following:
    1. To enable the required features, replace <feature>webProfile-7.0</feature> with:
      <!-- Enable features -->
      Note: You may need to enable the version of these features by running a command such as: <WLP_HOME>/bin/installUtility install servlet-3.1 jsp-2.3 jdbc-4.1 appSecurity-2.0 concurrent-1.0.
    2. To specify the address and port number on which the server listens:
      <httpEndpoint id="defaultHttpEndpoint"
    3. To define the data source:
      <!-- RES data source --> 
      <jdbcDriver id="DerbyJdbcDriver" libraryRef="DerbyLib"/>
      <library id="DerbyLib" filesetRef="DerbyFileset"/>
      <fileset id="DerbyFileset" dir="${shared.resource.dir}/derby" includes="derby.jar"/>
      <dataSource id="derbyEmbedded" isolationLevel="TRANSACTION_READ_COMMITTED" jndiName="jdbc/resdatasource" jdbcDriverRef="DerbyJdbcDriver">
      For more information about configuring a data source in the Liberty profile, see the IBM® WebSphere® Application Server Liberty Core documentation
    4. To declare the a default user for each role in the Liberty federated user registry, create users and groups that will bind to the roles:
      <!-- Web application security -->
      <basicRegistry id="basic" realm="customRealm">
          <user name="resAdmin" password="resAdmin"/>
          <user name="resDeploy" password="resDeploy"/>
          <user name="resMonitor" password="resMonitor"/>
          <group name="resAdministrators">
                      <member name="resAdmin"/>
          <group name="resDeployers">
                      <member name="resDeploy"/>
          <group name="resMonitors">
                      <member name="resMonitor"/>
    5. To declare the Rule Execution Server console and bind the groups of your user registry to the role:
      <!-- RES console -->
      <application type="war" id="res" name="res" location="${server.config.dir}/apps/res.war">
                  <security-role name="resAdministrators">
                          <group name="resAdministrators"/>
                  <security-role name="resDeployers">
                          <group name="resDeployers"/>
                  <security-role name="resMonitors">
                          <group name="resMonitors"/>
  5. Save the file.


The configuration file is now ready. At this point, you can configure the other archives, or start the server and open the Rule Execution Server console (see Completing the configuration of Rule Execution Server).