Setting up WAR files for out-of-process ASF Tomcat server with HTTP Server (powered by Apache)
This topic provides information about how to set up a Web Archive (WAR) file for use with the Tomcat servlet engine with the Web Administration for i5/OS.
Information for this topic supports the latest PTF levels for HTTP Server for i5/OS . IBM recommends that you install the latest PTFs to upgrade to the latest level of the HTTP Server for i5/OS. Some of the topics documented here are not available prior to this update. See IBM Service for more information.
Follow the instructions to use a WAR file with out-of-process ASF Tomcat servlet engine on your HTTP Server (powered by Apache).
Before you begin, review the User profiles and required authorities for HTTP Server topic.
Parent topic:
Tomcat tasks
Configuring the out-of-process ASF Tomcat
- Click the Manage tab.
- Click the ASF Tomcat Servers subtab.
- Expand Tomcat Tasks and Wizards.
- Click Create ASF Tomcat Server.
- Enter a name for your ASF Tomcat server.
- Click Next.
- Accept the default value (QTMHHTTP) or enter a specific user id for Server userid.
- Accept the default value for Java™ version (JDK).
- Accept the default value for ASF Tomcat home.
- Accept the default value for Java classpath entries.
- Click Next.
- Accept the default value for IP address.
- Enter the port number you provided for your localhost or remote server host for Port.
If no port number was given (you accepted the default localhost:8009) accept the default value.
- Select Binary (AJP13) for Server type.
- Click Next.
- Click Add.
- Enter the name of your WAR file with a forward slash "/" before it for URL path. For example, /warexample.
- Enter webapps followed by a forward slash "/" and the name of your WAR file for Application base directory. For example, webapps/warexample.
Do not select the Reloadable option at this time.
- Click Continue
The WAR file contains a web.xml file. The first time the WAR file is accessed, the files within the WAR file are extracted into the correct directory.
- Click Next.
- Click Finish.
- Click OK.
Configuring HTTP Server (powered by Apache) for ASF Tomcat
- Start the IBM® Web Administration for i5/OS™ interface.
- Click the Manage tab.
- Click the HTTP Servers subtab.
- Select your HTTP Server (powered by Apache) from the Server list.
- Select Global configuration from the Server area list.
- Expand Server Properties.
- Click ASF Tomcat Setup task from the task list.
- Select Enable from Enable servlets fro this HTTP Server.
- Accept the default workers definition file for Workers definition file.
- Click Next.
- Select Enable from Enable "out-of-process" servlet engine connections.
Do not select the Enable an "in-process" servlet engine option at this time.
- Click Add.
- Accept the default name or enter a new name of your ASF Tomcat server for Worker name.
The name of the worker will be used below.
- Select Binary (AJP13) for Worker type.
- Enter information based off one of the below conditions for Hostname:Port.
- Enter localhost and a port number if your out-of-process ASF Tomcat server is on your iSeries. For example, localhost:8009.
- Enter the name of the remote server host and the port number if your out-of-process ASF Tomcat server is not on your local iSeries. For example, IBMiSeries:8009.
- Click Continue.
- Click Next.
- Click Add.
- Enter the name of your WAR file with a forward slash "/" before it for URL (Mount point). For example, /warexample.
This name will be used below.
- Accept the default value for ASF Tomcat worker. Select the worker defined by you above.
- Click Add.
- Enter the name of your WAR file with a forward slash "/" before it and after it, followed by an asterisk "*" for URL (Mount point). For example, /warexample/*.
This URL (Mount point) is necessary so the files contained in your WAR file can be accessed.
- Accept the default value for ASF Tomcat worker.
- Click Continue.
- Click Next.
- Click Finish.
- Click OK.
Placing your WAR file in the correct directory
Using a file transfer method such as Netserver mapped drives or FTP, transfer the WAR file to the following directory: /ASFTomcat/[myserver]/webapps (where myserver is your server's name).
Starting HTTP Server and out-of-process ASF Tomcat server
- Click the Manage tab.
- Click All Servers subtab.
- Click the All HTTP Servers tab.
- Select your HTTP Server (powered by Apache) from the table.
- Click Start.
- Click the All ASF Tomcat Servers tab.
- Select your out-of-process ASF Tomcat server from the table.
- Click Start.
Testing your configuration
- Start a Web browser.
- Enter http://myserver:port/warexample, where myserver:port is the name of your iSeries and port number and warexample is the name of your WAR file.