WebFOCUS Postinstallation Tasks

This chapter explains verification and common configuration procedures for the WebFOCUS Client.

WebFOCUS Client Verification and Configuration

Setting Tomcat HTTP POST Maximum Size

Enabling Server Side Graphics

By default, WebFOCUS graphics are generated through the Web or application server using a Java-based graph engine installed with WebFOCUS Client. This is known as Server Side Graphics or PCHOLD. Using this approach, a complete graph file is created on the Web or application server and then sent to a browser.

Note: Server Side Graphics require several IBM PTFs. See the WebFOCUS Release Notes for more information.

Setting DISPLAY

For the graph engine to create Server Side Graphics, you must set DISPLAY.

Enable Server Side Graphics by Settings DISPLAY

The DISPLAY variable and other settings in cgivars.wfs should be set through the WebFOCUS Administration Console to properly enable server side graphics.

    Procedure
  1. Log on to the WebFOCUS Administration Console.
  2. On the left, click Configuration.
  3. Under Configuration, click Graph.
  4. Change the DISPLAY field to the required value. For example:
    XserverHost:0.0
  5. Select whether to use GRAPH32 or GRAPH53 for IBIF_graphengine.
  6. Ensure SSG_EXTERNAL is set to Yes.

    Note: If you are using Tomcat, set SSG_EXTERNAL to No.

  7. Set IBIJAVADIR to the directory where Java is installed (JAVA_HOME). For example:
    /usr/lpp/zWebSphere/V6R1/java/J5.0/bin
  8. Set IBIJAVACMD to the following:
    /bin/java
  9. Click Save.
  10. Click Memory Cache.
  11. Ensure that your application server DISPLAY variable is set to an X server. See Configuring Web and Application Servers for information on setting DISPLAY.
  12. Be aware that the X Server must accept requests from the Web and/or application server.

    On some UNIX platforms, the X Server is set by default to refuse connections. On these machines, one solution is to log on to the physical UNIX machine and start an X session. It is best to log on as someone other than root. Then open a command prompt and use the xhost command to specify hosts that will connect to the X server. For example:

    xhost +

    The xhost command is installed with the X Windows environment and may not be in you search PATH by default. After issuing the xhost command, leave this user logged on so that an X session remains running. To protect the machine, lock the display instead of logging off. If a different user needs to log on to the physical machine, or the machine is rebooted, the xhost command should be reissued on log on and an X session left running.

  13. Restart WebSphere components to ensure all changes are applied.

Verifying and Troubleshooting Server Side Graphics

A sample procedure is installed with the WebFOCUS Reporting Server to test Server Side Graphics.

Verify Server Side Graphics

Execute the sample:

http://hostname:port/ibi_apps/WFServlet?IBIF_ex=cargraph

where:

hostname:port

Is the hostname and port of the Web server. However, if you use an application server only configuration, then this is the hostname and HTTP port of the application server. If you require SSL, use https instead of http.

Note: Cookies generated by CGI and Servlet are not compatible, so to try both CGI and Servlet calls, clear the browser cache and close all browser windows between calls.

Your browser should display a graphic similar to the following.

If you receive an error, check your application server logs for errors like the following:

java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

This means DISPLAY is probably not set properly. Be sure to set and export this variable to a machine that is running an X server.

java.lang.InternalError: Can't connect to X11 window server using 'localhost:0' as the value of the DISPLAY variable.

This means either there is no available X Server on the host, or the host is rejecting the connection. You must configure your X Server to allow the connection and then restart the application server. Try using the X Server xhost command.