168 lines
10 KiB
HTML
168 lines
10 KiB
HTML
<?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 servlets 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 Java servlets 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 Java servlets 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="rzaietomcatopservlets" />
|
|
<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 servlets for out-of-process ASF Tomcat server with HTTP Server
|
|
(powered by Apache)</title>
|
|
</head>
|
|
<body id="rzaietomcatopservlets"><a name="rzaietomcatopservlets"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Set up servlets 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 Java™ servlets
|
|
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 servlet with out-of-process ASF Tomcat
|
|
servlet engine on your HTTP Server (powered by Apache). </p>
|
|
<p>This topic assumes that you have an existing HTTP Server (powered by Apache)
|
|
and you do not have a Tomcat configuration. 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 your worker name in the ASF Tomcat server name field. This is the
|
|
name of the ASF Tomcat server. For example, <em>mytomcat</em>. </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 port number you provided 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 URL path for <strong>URL path</strong>. For example, <em>/calc</em>.</li>
|
|
<li>Enter the name of your application base directory for <strong>Application base
|
|
directory</strong>. For example, <em>webapps/example</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>.</li>
|
|
<li>Click <strong>Configure</strong>.</li>
|
|
<li>Click <strong>Add</strong>.</li>
|
|
<li>Enter the name of your servlet class file for <strong>Servlet classname</strong>. <p>If
|
|
a jar file is used, enter the name of the servlet class in the jar file. For
|
|
example, <em>CalculatorExample</em>.</p>
|
|
</li>
|
|
<li>Accept the default value for <strong>URL patterns</strong>.</li>
|
|
<li>Accept the default value for <strong>Startup load sequence</strong>.<p>If you are
|
|
having trouble, one possible cause is incorrect authority and permissions.
|
|
See <a href="rzaiesetauth.htm">User profiles and required authorities for HTTP Server</a> for more information.</p>
|
|
</li>
|
|
<li>Click <strong>OK</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="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 for 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> for <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>Enter the name of the out-of-process ASF Tomcat server for <strong>Worker name</strong>.
|
|
For example, <em>mytomcat</em>. </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 the URL mount point for <strong>URL (Mount point)</strong>. For
|
|
example, <em>/calc</em>.</li>
|
|
<li>Accept the default value for <strong>ASF Tomcat worker</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 servlet file in the correct directory</h2>
|
|
<div><p>Using a file transfer method such as Netserver mapped drives or FTP, transfer
|
|
the servlet to one of the following directories: </p>
|
|
<ul><li>.class files<ul><li><tt>/ASFTomcat/<em>myserver</em>/webapps/example/WEB-INF/classes</tt> (where <tt><em>myserver</em></tt> is
|
|
your server's name)</li>
|
|
</ul>
|
|
</li>
|
|
<li>.jar files<ul><li><tt>/ASFTomcat/myserver/webapps/example/WEB-INF/lib</tt> (where <tt><em>myserver</em></tt> is
|
|
your server's name)</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</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 the <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> or <strong>Restart</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</em>/calc</strong>, to test the configuration,
|
|
where <em><strong>myserver:port</strong></em> is the name of your iSeries and port number. </li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html> |