| Tutorial |
| |
 |
|
| Menus |
|
 |
|
|
Servlet - Servlet Basics Deploying Servlet Using Tomcat Rating: 4.5/5 (4 votes cast) | Level : Beginners Author : Arunkumar S Download Source : Not Avaliable
Deploying Servlet Using Tomcat and Tomcat Installation -Step By Step Installation InstructionsThis Tutorial for Guid Step to Step tomcat Installation for both windows and Linux platform , and step by step deployment instruction for running servlet using tomcat (DEPLOYING SERVLET USING TOMCAT SERVER). before starting this task . we need some setup for running servlet . so complete the following requirement tasks
* Requirements for installing and configuring Tomcat, * Process of installing and configuring Tomcat, and * Deploying Tomcat web applications.
Requirements for Installing and Configuring Tomcat
Before Starting the tasks outlined by this article you will need to download the items listed in the Table 1.
Requirements
Tomcat 6.0 - http://tomcat.apache.org/ JDK 1.5 or above Standard Edition - http://java.sun.com/
For this article we will be using the latest versions of the tools listed above. Installing and Configuring Tomcat
In this article we will be installing Tomcat as a stand-alone server. This means that Tomcat will service all requests, including static content, JSPs, and servlets.
To configure Tomcat as a stand-alone server you will need to download the Tomcat 4.0 beta 1 and the JDK 1.3 Standard Edition from the locations listed above. You should choose the appropriate downloads based on your OS. We will be covering the steps involved in installing to both NT/2000 and Linux.
Installing to Windows NT/2000/XP
The first installation we will be performing is to Windows NT/2000/XP. The first thing you need to do is install the JDK, my JAVA_HOME directory is C:\Program Files\Java\jdk1.6.0
Now you need to extract the Tomcat server. Again, which will make my TOMCAT_HOME directory C:\Tomcat6.0
After you have extracted Tomcat, the next step is putting your JDK into Tomcat's CLASSPATH and setting the TOMCAT_HOME environment variable. To do this under NT/2000, you must
1. Right click the MyComputer Icon and then choose property menu . You should see an image similar to Figure 1.  Figure 1. 2.
Select the Advanced tab. You should see a screen similar to Figure 2.  Figure 2 3.
Select the Environment Variables button. You will see a screen similar to Figure 3.  Screen shot. Figure 3. Environment Variables Dialog 4. Select the New button on the System Variables section of the Environment Variables dialog. Add a JAVA_HOME variable and set its value to the location of your JDK installation. Figure 4 shows the settings associated with my installation.  Screen shot. Figure 4. JAVA_HOME Environment Settings 5. Repeat Step 4 using TOMCAT_HOME for the variable name and the location of your Tomcat installation as the value. For my installation I am setting the value to C:\Tomcat6.0. 
That's all there is to it. You should skip the following section "Installing to Linux" and move on to "Testing You Tomcat Installation." 1 | 2 | 3 | Next >
Discussion about this tutorial
 Start a new Discussion | Read All Discussion
|
|
|
|
|
|