Chapter 5. Decision Server ZIP installation

Decision Server provides the runtime environment for business assets and accesses the data stored in the assets repository (knowledge store). This section explains how to use the ZIP file to install Decision Server on an existing Red Hat JBoss Web Server 5.0 instance.

Note

To use the installer JAR file to install Decision Server, see Chapter 4, Using the Red Hat Decision Manager installer.

Prerequisites

  • A backed-up Red Hat JBoss Web Server 5.0 or higher server installation is available. The base directory of the JBoss Web Server installation is referred to as JWS_HOME.
  • Sufficient user permissions to complete the installation are granted.
  • The rhdm-7.1-decision_server-jws.zip file. To download this file:

    1. Click Download next to Red Hat Decision Manager 7.1.0 Add Ons on the Product Downloads page of the Red Hat Customer Portal.
    2. Unzip the rhdm-7.1.0-add-ons.zip file. The rhdm-7.1-decision_server-jws.zip file is in the unzipped directory.

Procedure

  1. Extract the rhdm-7.1-decision_server-jws.zip archive to a temporary directory. In the following examples this directory is called TEMP_DIR.
  2. Copy the TEMP_DIR/rhdm-7.1-decision_server-jws/kie-server.war directory to the JWS_HOME/tomcat/webapps directory.

    Warning

    Ensure the names of the Red Hat Decision Manager deployments you are copying do not conflict with your existing deployments in the Red Hat JBoss Web Server instance.

  3. Remove the .war extensions from the kie-server.war folder.
  4. Open the JWS_HOME/tomcat/conf/tomcat-users.xml file in a text editor.
  5. Add users and roles to the JWS_HOME/tomcat/conf/tomcat-users.xml file. In the following example, <ROLE_NAME> is a role supported by Red Hat Decision Manager. <USER_NAME> and <USER_PWD> is a user and password combination of your choice:

    <role rolename="<ROLE_NAME>"/>
    <user username="<USER_NAME> password="<USER_PWD>" roles="<ROLE_NAME>"/>

    If a user has more than one role, as shown in the following example, separate the roles with a comma:

    <role rolename="admin"/>
    <role rolename="kie-server"/>
    <user username=rhdmUser password="user1234" roles="admin,kie-server"/>
  6. In the JWS_HOME/tomcat/bin directory, create a readable setenv.sh file with the following content:

    CATALINA_OPTS="-Xmx1024m -Dorg.jboss.logging.provider=jdk -Dorg.jbpm.server.ext.disabled=true -Dorg.jbpm.ui.server.ext.disabled=true -Dorg.jbpm.case.server.ext.disabled=true"

    Important

    On Microsoft Windows, add the following values to the setenv.bat file:

    set "CATALINA_OPTS="-Xmx1024m -Dorg.jboss.logging.provider=jdk -Dorg.jbpm.server.ext.disabled=true -Dorg.jbpm.ui.server.ext.disabled=true -Dorg.jbpm.case.server.ext.disabled=true""

  7. To start JBoss Web Server, enter one of the following commands in the JWS_HOME/tomcat/bin directory:

    • On Linux or UNIX-based systems:

      $ ./startup.sh
    • On Windows:

      startup.bat
  8. After a few minutes, review the the JWS_HOME/tomcat/logs directory and correct any errors.
  9. To verify that Decision Server is working on Red Hat JBoss Web Server, enter the following command:

    curl -X GET "http://localhost:8080/kie-server/services/rest/server" -H  "accept: application/xml" -u '<USER_NAME>:<USER_PWD>'

    In this command, replace <USER_NAME> and <USER_PWD> with the values in the tomcat-users.xml file.

    The output of this command provides information about the Decision Server instance.