Running IBM Cognos Mobile in an environment without a web server

Technote (troubleshooting)


Problem(Abstract)

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.

Rate this page:

(0 users)Average rating

Document information


More support for:

Cognos Mobile
Cognos Mobile

Software version:

10.1.1, 10.2, 10.2.1

Operating system(s):

AIX, HP Itanium, Linux, Solaris, Windows

Software edition:

All Editions

Reference #:

1643691

Modified date:

2014-10-21

Translate my page

Machine Translation

Content navigation