Configuring WebFOCUS in a Split Web-Tier and Application Server-Only Environment

In a split web-tier environment, all WebFOCUS web components run through the application server, and you should not create the ibi_html and approot aliases on a web server. Instead, you can configure your application server to serve the content in the drive:\ibi\apps directory.



The steps for configuring WebFOCUS to run only in an application server configuration is similar to split web-tier, in that you configure the application server to serve static content from the ibi_html and apps directories.

The one difference is where the ReportCaster Default Library URL is pointing. With split web-tier, this setting points to the web server. In an application server-only configuration, it points to the application server.



Using the Static Content Server Option

WebFOCUS installs a pair of web applications into the drive:\ibi\WebFOCUS82\webapps directory, which are designed to serve static content from the file system to the browser:

Deploy one or both of these applications to address the following split web-tier and stand-alone application server configurations:

Each application includes a deployment descriptor (webconfig.xml) that is used to locate the directory containing its configuration file. The context parameter IBI_Configuration_Directory in webconfig.xml is updated during installation to point to drive:/ibi/WebFOCUS82/config, which contains the configuration file approotConfig.xml. The configuration file is shared by both content server applications even though its name suggests it would be used by only one. The configuration file is used to maintain MIME mappings, the physical path of the directories being served, and the logging level.

The applications also include a Log4J property file (log4j.xml), which contains the path to the log file used by each application. The installation updates each log4j.xml file with the path to its own log file, drive:/ibi/WebFOCUS82/logs/wfapproot.log and drive:/ibi/WebFOCUS82/logs/wfibihtml.log, respectively.

The content server applications roll the log files over daily by appending the date to the log file and creating a new one (for example, wfibihtml.log.2016-01-01). You can increase the log level by editing drive:/ibi/WebFOCUS82/config/approotConfig.xml and changing the log level setting to DEBUG, INFO, WARN, ERROR, or FATAL, where DEBUG is the most verbose.

There are special considerations for using the content server option in a clustered web-tier environment.



Reference: Using the IBIARCFG and IBIARLOG –D Options With the Content Server Web Applications

Generally speaking, the approach of specifying a fully qualified path to the configuration file (approotConfig.xml) in webconfig.xml and of specifying a fully qualified path to the log files in log4j.xml is sufficient for most installations. These paths are properly set during installation.

However, there is an option to pass the content servers these paths from the Java VM command line. To do this, complete the following steps:

  1. Edit the WebFOCUS webconfig.xml file found inside both the approot.war and ibi_html.war files. Replace the fully qualified path defined in the IBI_Configuration_Directory parameter with the notation shown below.
    <context-param>
        <param-name>IBI_Configuration_Directory</param-name>
        <param-value>${IBIARCFG}</param-value>
    </context-param>
  2. Edit the WebFOCUS log4j.xml file located in the approot.war file and replace the fully qualified path specified by the File parameter, as follows:
    <param name="File" value="${IBIARLOG}/wfapproot.log"/>

    Use a forward slash, even on Windows systems.

  3. Edit the WebFOCUS log4j.xml file located inside the ibi_html.war file and replace the fully qualified path specified by the File parameter, as follows:
    <param name="File" value="${IBIARLOG}/wfibihtml.log"/>

    Use a forward slash even on Windows systems.

  4. Add the following –D options in the manner appropriate for the Java VM for your application server.

    The settings below are slightly different in a clustered web-tier environment.

    –DIBIARCFG=install_directory/ibi/WebFOCUS82/config 
    –DIBIARLOG=install_directory/ibi/WebFOCUS82/logs

Information Builders