ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzaie_5.4.0.1/rzaietomcatopwar.htm

164 lines
10 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="topic" />
<meta name="DC.Title" content="Set up WAR files for out-of-process ASF Tomcat server with HTTP Server (powered by Apache)" />
<meta name="abstract" content="This topic provides information about how to set up a Web Archive (WAR) file for use with the Tomcat servlet engine with the IBM Web Administration for i5/OS interface." />
<meta name="description" content="This topic provides information about how to set up a Web Archive (WAR) file for use with the Tomcat servlet engine with the IBM Web Administration for i5/OS interface." />
<meta name="DC.Relation" scheme="URI" content="rzaiepartomcat.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2002,2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2002,2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rzaietomcatopwar" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Set up WAR files for out-of-process ASF Tomcat server with HTTP Server
(powered by Apache)</title>
</head>
<body id="rzaietomcatopwar"><a name="rzaietomcatopwar"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Set up WAR files for out-of-process ASF Tomcat server with HTTP Server
(powered by Apache)</h1>
<div><p>This topic provides information about how to set up a Web Archive
(WAR) file for use with the Tomcat servlet engine with the <span>IBM<sup>®</sup> Web Administration for i5/OS™ interface</span>.</p>
<div class="important"><span class="importanttitle">Important:</span> Information
for this topic supports the latest PTF levels for HTTP Server for i5/OS .
It is recommended 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 <a href="http://www-03.ibm.com/servers/eserver/iseries/software/http/services/service.html" target="_blank">http://www.ibm.com/servers/eserver/iseries/software/http/services/service.htm</a> <img src="www.gif" alt="Link outside Information Center" /> for more information. </div>
<p>Follow the instructions to use a WAR file with out-of-process ASF Tomcat
servlet engine on your HTTP Server (powered by Apache). </p>
<p>Before you begin, review the <a href="rzaiesetauth.htm">User profiles and required authorities for HTTP Server</a> topic.
</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaiepartomcat.htm" title="This topic provides step-by-step tasks for the Apache Software Foundation Tomcat servlet engine.">Tomcat tasks</a></div>
</div>
</div><div class="nested1" id="outofprocess"><a name="outofprocess"><!-- --></a><h2 class="topictitle2">Configure the out-of-process ASF Tomcat</h2>
<div><ol><li>Click the <strong>Manage</strong> tab. </li>
<li>Click the <span class="uicontrol">ASF Tomcat Servers</span> subtab.</li>
<li>Expand <span class="uicontrol">Tomcat Tasks and Wizards</span>.</li>
<li>Click <strong>Create ASF Tomcat Server</strong>. </li>
<li>Enter a name for your ASF Tomcat server. </li>
<li>Click <strong>Next</strong>. </li>
<li>Accept the default value (QTMHHTTP) or enter a specific user id for <strong>Server
userid</strong>.</li>
<li>Accept the default value for <strong>Java™ version (JDK)</strong>.</li>
<li>Accept the default value for <strong>ASF Tomcat home</strong>.</li>
<li>Accept the default value for <strong>Java classpath entries</strong>.</li>
<li>Click <strong>Next</strong>.</li>
<li>Accept the default value for <strong>IP address</strong>.</li>
<li>Enter the <strong>port number</strong> you provided for your localhost or remote
server host for <strong>Port</strong>. <div class="note"><span class="notetitle">Note:</span> If no port number was given (you accepted
the default localhost:8009) accept the default value.</div>
</li>
<li>Select <strong>Binary (AJP13)</strong> for <strong>Server type</strong>.</li>
<li>Click <strong>Next</strong>.</li>
<li>Click <strong>Add</strong>.</li>
<li>Enter the name of your WAR file with a forward slash "<em>/</em>" before
it for <strong>URL path</strong>. For example, <em>/warexample</em>.</li>
<li>Enter <strong>webapps</strong> followed by a forward slash "<em>/</em>" and the name
of your WAR file for <strong>Application base directory</strong>. For example, <em>webapps/warexample</em>. <div class="note"><span class="notetitle">Note:</span> Do
not select the <strong>Reloadable</strong> option at this time.</div>
</li>
<li>Click <strong>Continue</strong><p>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. </p>
</li>
<li>Click <strong>Next</strong>.</li>
<li>Click <strong>Finish</strong>.</li>
<li>Click <strong>OK</strong>.</li>
</ol>
</div>
</div>
<div class="nested1" id="httpserver"><a name="httpserver"><!-- --></a><h2 class="topictitle2">Configure HTTP Server (powered by Apache) for ASF Tomcat</h2>
<div><ol><li>Start the <span>IBM Web Administration for i5/OS interface</span>. </li>
<li>Click the <strong>Manage</strong> tab. </li>
<li>Click the <span class="uicontrol">HTTP Servers</span> subtab.</li>
<li>Select your HTTP Server (powered by Apache) from the <strong>Server</strong> list.
</li>
<li>Select <strong>Global configuration</strong> from the <strong>Server area</strong> list. </li>
<li>Expand <strong>Server Properties</strong>. </li>
<li>Click <strong>ASF Tomcat Setup task</strong> from the task list. </li>
<li>Select <strong>Enable</strong> from <strong>Enable servlets fro this HTTP Server</strong>.</li>
<li>Accept the default workers definition file for <strong>Workers definition file</strong>.</li>
<li>Click <strong>Next</strong>.</li>
<li>Select <strong>Enable</strong> from <strong>Enable "out-of-process" servlet engine connections</strong>.<div class="note"><span class="notetitle">Note:</span> Do
not select the <strong>Enable an "in-process" servlet engine</strong> option at this
time.</div>
</li>
<li>Click <strong>Add</strong>.</li>
<li>Accept the default name or enter a new name of your ASF Tomcat server
for <strong>Worker name</strong>. <div class="note"><span class="notetitle">Note:</span> The name of the worker will be used below.</div>
</li>
<li>Select <strong>Binary (AJP13)</strong> for <strong>Worker type</strong>.</li>
<li>Enter information based off one of the below conditions for <strong>Hostname:Port</strong>.<ol type="a"><li>Enter <strong>localhost</strong> and a <strong>port number</strong> if your out-of-process
ASF Tomcat server is on your iSeries™. For example, <tt>localhost:8009</tt>.</li>
<li>Enter the <strong>name of the remote server host</strong> and the <strong>port number</strong> if
your out-of-process ASF Tomcat server is not on your local iSeries. For example, <tt>IBMiSeries:8009</tt>. </li>
</ol>
</li>
<li>Click <strong>Continue</strong>.</li>
<li>Click <strong>Next</strong>.</li>
<li>Click <strong>Add</strong>.</li>
<li>Enter the name of your WAR file with a forward slash "<em>/</em>" before
it for URL (Mount point). For example, <em>/warexample</em>. <div class="note"><span class="notetitle">Note:</span> This name
will be used below.</div>
</li>
<li>Accept the default value for <strong>ASF Tomcat worker</strong>. Select the worker
defined by you above.</li>
<li>Click <strong>Add</strong>.</li>
<li>Enter the name of your WAR file with a forward slash "<em>/</em>" before
it and after it, followed by an asterisk "<em>*</em>" for <strong>URL (Mount point)</strong>.
For example, <em>/warexample/*</em>. <p>This URL (Mount point) is necessary
so the files contained in your WAR file can be accessed.</p>
</li>
<li>Accept the default value for <strong>ASF Tomcat worker</strong>.</li>
<li>Click <strong>Continue</strong>.</li>
<li>Click <strong>Next</strong>.</li>
<li>Click <strong>Finish</strong>.</li>
<li>Click <strong>OK</strong>.</li>
</ol>
</div>
</div>
<div class="nested1" id="directory"><a name="directory"><!-- --></a><h2 class="topictitle2">Place your WAR file in the correct directory</h2>
<div><p>Using a file transfer method such as Netserver mapped drives or FTP, transfer
the WAR file to the following directory: <tt>/ASFTomcat/[<em>myserver</em>]/webapps</tt> (where <tt><em>myserver</em></tt> is
your server's name). </p>
</div>
</div>
<div class="nested1" id="start"><a name="start"><!-- --></a><h2 class="topictitle2">Start HTTP Server and out-of-process ASF Tomcat server</h2>
<div><ol><li>Click the <strong>Manage</strong> tab. </li>
<li>Click <span class="uicontrol">All Servers</span> subtab.</li>
<li>Click the <span class="uicontrol">All HTTP Servers</span> tab.</li>
<li>Select your HTTP Server (powered by Apache) from the table. </li>
<li>Click <strong>Start</strong>. </li>
<li>Click the <span class="uicontrol">All ASF Tomcat Servers</span> tab.</li>
<li>Select your out-of-process ASF Tomcat server from the table. </li>
<li>Click <strong>Start</strong>. </li>
</ol>
</div>
</div>
<div class="nested1" id="test"><a name="test"><!-- --></a><h2 class="topictitle2">Test your configuration</h2>
<div><ol><li>Start a Web browser. </li>
<li>Enter <strong>http://<em>myserver:port/warexample</em></strong>, where <strong><em>myserver:port</em></strong> is
the name of your iSeries and port number and <em><strong>warexample</strong></em> is the
name of your WAR file. </li>
</ol>
</div>
</div>
</body>
</html>