IBM Support

Running IBM Cognos Mobile in an environment without a web server

Troubleshooting


Problem

By default, IBM Cognos Mobile requires a configured web server to run. If your environment does not have a configured web server, the configuration must be changed to run IBM Cognos Mobile.

Resolving The Problem

Configure the Cognos BI environment to use the dispatcher URI as the gateway URI.

Note: When editing the files in the following steps, replace the entries precisely as described below. Avoid adding comments or commenting out existing statements, as the files are parsed as text.

Steps:

  1. Copy and paste all files and folders from the <Cognos_10.x_installation>/webcontent directory to the <Cognos_10.x _installation>/webapps/p2pd directory.
  2. In IBM Cognos Configuration, for the Environment category, specify the following URIs:
    For the Gateway URI property, type:
    http://server_name:port#/p2pd/servlet/dispatch. For the Controller URI for gateway property, type:
    http://server_name:port#/p2pd/controllerServer
  3. From the <Cognos 10.x_installation>/webapps/p2pd directory, open the index.html file in an editor.
  4. Locate the splashLoaded(img) method, and replace the instance of cgi-bin/cognos.cgi with servlet/dispatch for this method, as shown in the following code sample:

    [code]
    function splashLoaded(img){
         
    img.style.visibility = "visible";
         window.setTimeout("window.location.replace
       ('
    servlet/dispatch?b_action=xts.run&m=portal/main.xts&startwel=yes')",5); }
    [code]
  5. From the <Cognos 10.x_installation>/webapps/p2pd/m directory, open the mobilelauncher.html file in an editor.
  6. Locate the splashLoaded(img) method, and replace the instance of cgi-bin/cognos.cgi with servlet/dispatch for this method, as shown in the following code sample:

    [code]
    function splashLoaded(img){
        img.style.visibility = "visible";
        var referrer = document.referrer.split('/');
        if (referrer[referrer.length-1] == "") referrer.pop();
        if (referrer[referrer.length-1] == "isapi" ) { window.setTimeout("window.location.replace('../cgi-bin/cognosisapi.dll?b_action=xts.run&m=portal/main.xts&startwel=yes')",5);
        } else if (referrer[referrer.length-1] == "mod" ) { window.setTimeout("window.location.replace('../cgi-bin/cognos_module?b_action=xts.run&m=portal/main.xts&startwel=yes')",5);
        } else {
    window.setTimeout("window.location.replace('servlet/dispatch?b_action=xts.run&m=portal/main.xts&startwel=yes')",5);
        }
    }

    [code]
  7. After making the changes to access the environment you must now access via a URL as such:

    http://server_name:port#/p2pd/m.

[{"Product":{"code":"SSEN9H","label":"IBM Cognos Mobile"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Cognos Mobile","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"10.2.1;10.2;10.1.1","Edition":"All Editions","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
15 June 2018

UID

swg21643691