WebFOCUS Troubleshooting Tips

Topics:

Troubleshooting WebFOCUS considers all the places where a problem can occur. These include the following:

General Tips

Try some of these solutions when troubleshooting WebFOCUS problems:

  1. Clear your web browser cache and close all browser instances. Often, even after you have taken steps to correct a problem, the page or pages that contained the original problem still reside in cache.
  2. Ensure that all components are started and are listening on their expected ports. The WebFOCUS web application may take some time to load.
  3. Ensure that you typed in the correct URL. WebFOCUS URLs are case-sensitive.
  4. If your web server is not listening on port 80, make sure you are calling with the correct port in the URL.
  5. Ensure that the correct application names are listed in your WebFOCUS Reporting Server APP PATH. This is defined in:
    drive:\ibi\srv82\wfs\etc\edasprof.prf

    If you receive a Resource not found message, then this may be the problem.

  6. Be aware that WebFOCUS does not support two concurrent Microsoft Internet Explorer sessions from a single PC. This is due to an Internet Explorer cookie management limitation. When you run two browser sessions simultaneously from the same machine, messages such as file not found, appear.
  7. During testing, be sure to call pages using HTTP or HTTPS requests and not by selecting Open from the File menu in the web browser.
  8. Turn on tracing through the WebFOCUS Administration Console.
  9. Clear the cache in your application server after completing the upgrade installation. For example, if you are using Apache Tomcat, the cache can be cleared by manually deleting any subdirectories that correspond to the context roots that you deployed (for example, /ibi_apps and /ibi_help), which are located in the following directory:
    <catalina_home>\work\Catalina\localhost

    Note: If installed by WebFOCUS Client, Tomcat will be installed in the root directory of the WebFOCUS installation which, by default, is c:\ibi\tomcat.

  10. In the WebFOCUS Administration Console, select the Diagnostics tab and use the available options to troubleshoot.
  11. Restart all components, especially your web or application servers.

HTTP 500 Internal Server Message

If you receive an HTTP 500 server message on the Configuration Verification Utility page after installation, clear your browser cache and access the Diagnostics page again from either the Program Menu option or by copying the URL into another browser window. This may occur on a full installation or on a service pack upgrade.

Web Browser Issues

Reference:

If you are planning to use WebFOCUS products, note that browsers released after the production date of a WebFOCUS version are subject to certification. Certification is done with the current release level of WebFOCUS and App Studio. For additional information, see Web Browser Support for WebFOCUS, which can be accessed by clicking on the following URL:

https://techsupport.informationbuilders.com/tech/wbf/wbf_tmo_027.html

Note: Some browsers may function differently depending on the operating system. See the WebFOCUS Release Notes for detailed information on known issues related to browser version or configuration.

Reference: Firefox Support

For information on supported Firefox browser versions, see Web Browser Support for WebFOCUS, which can be accessed by clicking on the following URL.

https://techsupport.informationbuilders.com/tech/wbf/wbf_tmo_027.html

JVM Support Issue with IBM WebSphere Application Server

How to:

WebFOCUS 8.2 requires Java VM Version 7 or higher on the system that is hosting the application server where the WebFOCUS Client web application is displayed and the ReportCaster Distribution Server is installed.

Procedure: How to Verify JVM Version

There are two methods for verifying the Java VM version installed on the machine where the WebFOCUS client is deployed.

  • From the WebFOCUS Administration Console:
    1. Sign in to WebFOCUS and select Administration Console from the Administration menu.
    2. Select the Diagnostics tab.
    3. Select JVM Property Info.

    The version is listed under java.runtime.version.

  • From a browser, type the following URL:
    http://hostname:port/ibi_apps/diagnostics/properties.jsp

    The version is listed under java.vm.version.

Web and Application Server Debugging

Ensure that your web and application servers are configured, as explained in Configuring Web and Application Servers.

WebFOCUS relies on processing by the Java VM, web server, and application server. Their debugging tools and log files can help troubleshoot common WebFOCUS issues. Review the documentation for your web and application servers for information on their tracing and log files.

For Apache Tomcat, review the log information generated in the following directory:

C:\ibi\tomcat\logs
Note: You can safely ignore the following error:
org.apache.catalina.core.AprLifecycleListener lifecycleEvent - INFO:
The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path.

Java Memory Issues

Depending on your application server default settings, you may need to adjust the Java VM memory options if you run into performance issues. If the WebFOCUS installation configured Tomcat for you, this is done automatically.

The most common Java VM options you need to set involve the size of the Java heap and stack, which determine memory availability for Java programs and the Java VM. Errors can occur if not enough memory is available, and the heap size impacts performance, since it determines how often garbage collection occurs.

The following are the most common Java VM options related to memory settings. Replace the #### with the size you wish to set:

-Xmx####M

Sets the maximum Java heap size. It is common to make this 1/4 of the system RAM, but it must be at least 1536 MB (1.5 GB).

-Xms####M

Sets the initial Java heap size. It is common to make this 1/8 of the system RAM, but it must be at least 1536 MB (1.5 GB).

-Xss####M

Sets the Java thread stack size. You do not need to set this unless you are fine tuning your environment.

The size is normally set in Megabytes. For example:

-Xms1536M
-Xmx2048M

To view your current Java VM memory settings, access the WebFOCUS Administration Console. Select the Diagnostics tab and select JVM Property Info.

The Java VM memory settings for your environment are displayed in the right pane, as shown in the following image.

Optimum sizes vary depending on your total memory, the needs of your application, how many other processes require memory, the type of Java VM, and other considerations. A good starting place is to set the minimum to 1/8 of the total RAM and set the maximum to 1/4 of total RAM.

Where to set these and other Java VM options depend on your application server.

  • For Tomcat, these are set automatically if the WebFOCUS installation configured Tomcat.

  • For other application servers, refer to your application server documentation.

Graphics Issues

You can test basic graph functionality by running the sample cargraph.fex procedure installed with the WebFOCUS Reporting Server:

http://hostname:port/ibi_apps/WFServlet?IBIF_ex=cargraph&FORMAT=PNG

If you cannot generate graphics or want to improve performance, try adding the following Java option to your application server Java VM settings:

-Dsun.java2d.noddraw

For Tomcat, this is in the Apache Tomcat Properties windows on the Java tab, in the Java Options field.

If you cannot run a graph request, you may also need to set NTFS permission to allow your application server full permissions to the temporary directory used by the Java VM. This directory is the java.io.tmpdir parameter that appears in the WebFOCUS Administration Console when you select the Diagnostics tab and select JVM Property Info.

WebFOCUS Web Server Host Name and Port Settings

During the WebFOCUS Client installation, you are asked for the host name and HTTP port of your web server. This should be the host name and port that your end users use to access WebFOCUS and ReportCaster. These values are used for communications between ReportCaster and Report Library. If you use Report Library, ensure this is set to the end user accessible web server host name and port, even if it is not on the same machine as WebFOCUS and only forwards requests through a firewall.

If you need to change the web server host name and port that you entered during the installation:

  1. If you use ReportCaster, correct the host name and port number stored in the ReportCaster configuration for the Report Library. To do this, access the ReportCaster Console, which can be accessed from the WebFOCUS BI Portal. After you sign in to the WebFOCUS BI Portal, click Tools from the top menu bar and select ReportCaster Status.

    The ReportCaster Console opens in a new browser window.

  2. Click the Configuration tab.
  3. Click Report Library in the left pane and change the host name and port in the Default Library URL for Email Notification field.
  4. Click the Save icon, followed by Restart to restart all WebFOCUS components.
  5. Optionally, update the shortcuts that appear in the Start menu for accessing WebFOCUS pages. To do this, right-click each of the following, select Properties, and adjust the host name and port that appear in the URL:
    drive:\ibi\WebFOCUS82\utilities\showconsole
    drive:\ibi\WebFOCUS82\utilities\ReportCasterMain
    drive:\ibi\WebFOCUS82\utilities\ReportCasterConsole

    For example:

    http://hostname.domain.com:8080/ibi_html/wfconsole.htm

    If you are not using ReportCaster, the ReportCaster links do not appear.

Using the jar Utility

How to:

A jar.exe utility is installed with the Java JDK. It lets you create, extract, and edit the contents of JAR, WAR, EAR, ZIP, RAR, and other archive files. If you deploy the WebFOCUS web application as a WAR file, the jar utility lets you change the webfocus file contents.

Note: The default WebFOCUS Apache Tomcat configuration does not use the WAR file, so this utility is normally not needed with Tomcat.

Procedure: How to Ensure You Can Use the jar Utility

To use the jar command, ensure that the JAVA_HOME\bin directory is in your search PATH. For example:

C:\Program Files\Java\jdk1.8.0_102\bin

The exact directory varies depending on the Java release, and for Java 7, it is under C:\. This directory contains many Java utilities and is not added to your search PATH by the Java JDK installation. To add this to your search PATH:

  1. Go to the Windows Control Panel and open the System folder.
  2. Click Advanced system settings and then click the Environment Variables button.
  3. In the bottom System variables frame, select Path.
  4. Click Edit.
  5. At the end of the line, add a semicolon (;) and the path to the JAVA_HOME\bin directory. For example:
    ;C:\Program Files\Java\jdk1.8.0_102\bin
  6. Click OK to close out.

Procedure: How to Edit the WebFOCUS Web Application

The WebFOCUS web application is provided as both an expanded directory and a WAR file:

drive:\ibi\WebFOCUS82\webapps\webfocus
drive:\ibi\WebFOCUS82\webapps\webfocus.war

The easiest way to edit the web application is the following:

  1. Undeploy the webfocus.war file from your application server.
  2. Rename the webfocus.war file to webfocus-old.war. This ensures you have a back up and can keep track of where the latest version resides.
  3. Edit or add files to the expanded webfocus directory and subdirectories. You should do this even if you deploy the WAR file instead of the expanded directories. This ensures that service packs maintain your changes. When you apply a service pack, any changes must be in the expanded directories to be maintained.
  4. Open a Command Prompt.
  5. Navigate to the webfocus directory. For example:
    drive:\ibi\WebFOCUS82\webapps\webfocus
  6. Use the jar command to create a new webfocus.war file that contains the contents of the webfocus directory and subdirectories. For example:
    jar cvf ../webfocus.war *

    This creates a webfocus.war file containing all files and subdirectories in your current directory. The webfocus.war file will be located one directory above your current location because you prefaced it with "../".

  7. Redeploy the WebFOCUS web application to your application server.

Procedure: How to Execute the jar Utility

The options for using the jar commands are useful to know. You execute the jar utility from the Command Prompt.

  • To create a new jar file:
    jar cvf FileToCreate.war FileToAdd1 FileToAdd2

    You can add all files and subdirectories using an asterisk (*).

    jar cvf FileToCreate.war *
  • To extract the contents of an existing jar file:
    jar xvf ExistingFile.war FileToExtract1 FileToExtract2

    Files are extracted to your current location.

    You can extract all files and subdirectories by not specifying any files to extract.

    jar xvf ExistingFile.war
  • To add or replace a file in an existing jar file:
    jar uvf ExistingFile.war FileToAdd1

WebFOCUS File Extensions

WebFOCUS files have several non-standard file extensions on Windows, such as .mas, .prf, .acx, .wfs, .cfg, and .xmls files. Depending on the software installed on your machine, these file extensions may already be in use for other applications. Normally, this causes no conflicts when using either WebFOCUS or the other applications. However, should you attempt to open a WebFOCUS file that is mapped for another application by double-clicking it in File Explorer, problems can arise.

Note: By default, you might not see file extensions in File Explorer. To see extensions, open File Explorer. On the View tab, enable View file name extensions.

Specific instances where WebFOCUS extensions may conflict are the following:

  • PRF files, such as drive:\ibi\srv82\wfs\etc\edasprof.prf

    PRF files are normally mapped to Microsoft Outlook Profile settings. On some Windows releases, opening edasprof.prf by double-clicking it in File Explorer, can cause damage to your Microsoft Outlook settings. Therefore, if you need to edit this file, open it from within a text editor.

  • MAS files, such as drive:\ibi\apps\ibisamp\car.mas

    MAS files may be mapped as Microsoft Access files if you have Microsoft Access installed.

Missing Tomcat Context Definition Files

Symptom: The context definition files for Tomcat are being deleted periodically.

The following files will be deleted randomly:

<catalina_home>\conf\Catalina\localhost\ibi_apps.xml
<catalina_home>\conf\Catalina\localhost\ibi_html.xml
<catalina_home>\conf\Catalina\localhost\approot.xml

Problem: This is a problem with Tomcat in certain environments. The exact cause of the issue is unknown.

For more details, see:

http://alwold.blogspot.com/2008/05/getting-tomcat-to-stop-deleting-your.html

Solution: Within the Tomcat configuration (server.xml), turn off autoDeploy.

  1. Edit your Tomcat server.xml.

    On Windows, this is typically found at:

    <catalina_home>\conf\server.xml

    or, if the WebFOCUS Client installation installed Tomcat, it is located under

    <catalina_home>\conf\server.xml
  2. Find the following section within your server.xml:
    <Host name="localhost" appBase="webapps"
    unpackWARs="true" autoDeploy="true"  
    xmlValidation="false" xmlNamespaceAware="false">

    and change autoDeploy to false:

    <Host name="localhost" appBase="webapps/localhost"
    unpackWARs="true" autoDeploy="false"  
    xmlValidation="false" xmlNamespaceAware="false">
  3. Restart Tomcat.

WebFOCUS

Feedback