blob: 9b24109fde21c53276e3b8d0fbf2c8e381c08f91 [file] [log] [blame]
<?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>
<!-- /*******************************************************************************
* Copyright (c) 2000, 2005, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/ -->
<link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" />
<title>Creating a Tomcat server</title>
</head>
<body id="tomcat_jst"><a name="tomcat_jst"><!-- --></a>
<h1 class="topictitle1">Creating a Tomcat server</h1>
<div><p>The server tools feature supports the Apache Tomcat
runtime environment, running locally. With Tomcat, you can only test Web projects
that contain servlets and JSPs. To set up a server to test projects on Apache
Tomcat, complete the following: </p>
<div class="p" id="tomcat_jst__prereq"><a name="tomcat_jst__prereq"><!-- --></a><strong>Prerequisites</strong><div class="p"><ul><li>Download Apache Tomcat from <a href="http://jakarta.apache.org/tomcat" target="_blank">jakarta.apache.org/tomcat</a></li>
<li>Extract the compressed file containing Apache Tomcat on your local file
system.</li>
<li>Add the Apache Tomcat runtimes. For details on how to do this, refer to
the <em>Add the Apache Tomcat runtimes</em> link on the bottom of this topic.</li>
</ul>
</div>
<p>To create a Apache Tomcat server:</p>
</div>
<a name="tomcat_jst__steps"><!-- --></a><ol id="tomcat_jst__steps"><li class="stepexpand"><span>In the Servers view, right-click and select <span class="uicontrol">New</span> &gt; <span class="uicontrol">Server</span>.
The Define a New Server wizard opens.</span></li>
<li class="stepexpand"><span>In the <span class="uicontrol">Select the server type</span> list, select
the Tomcat server defined in the previous step.</span> <div class="tip"><span class="tiptitle">Tip:</span> If
you did not specify the Tomcat install directory, the Define a New Server
wizard will prompt you for this information.</div>
</li>
<li class="stepexpand"><span>Start the Tomcat server.</span> In the Servers view, right-click
the Tomcat server and select <span class="uicontrol">Start</span>.</li>
<li class="stepexpand"><span>Test your setup of the Tomcat server.</span><ol type="a"><li><span>Open a Web browser.</span></li>
<li><span>Type the Web address <samp class="codeph">http://localhost:8080/</samp>.
If you see the Apache Tomcat start page, you have successfully set up your
Tomcat server.</span></li>
</ol>
</li>
</ol>
</div>
<div><div class="reltasks"><strong>Related tasks</strong><br />
<div><a href="../topics/twtomprf.html" title="Using the Preferences page, you can define the installed server runtime definitions for the Apache Tomcat server. To define these definitions, complete the following:">Adding the Apache Tomcat runtimes</a></div>
</div>
</div></body>
</html>