Tutorial to install tom cat web server.
Tomcat server supports java of versions 1.4.2 or higher.
1. First install java before the installation of tomcat server, say we are installing our java in the operating system drive with a separate folder.
2. Then proceed to Java installation (here we are installing j2sdk1.4.2)
3.Click on the j2sdk-1_4_2-win file and allow java to be installed (this may take some minutes)
4. After the installation of java we need to set the path for java in the following way:(for XP)
1. Right click on the my computer
2.Click on the properties
3.Click on the advanced
4.Then on the environment variables
Set the variables
Classpath and path as shown below
click on the ok button
5.click on the ok button.
All the variables are set now.
Here we should install java with the location address D:\j2sdk1.4.2
Now we have finished installation of java.
6. We shall start the installation of Tomcat server. We are installing jakarta-tomcat-5.0.5.
7. So click on the setup file.
8. For easy location and effective use of the server follow the following steps:
9. Tomcat sever was installed in the location
D:\Tomcat5.0
10.click on the Next button
11. Click on the install button and follow the instructions.
12. Finally u will be successfully installed with tomcat5.0 at the location D:\Tomcat5.0
13. Now we need to set the variables as follows
Syntax shld be followed(ie semi colons and dots are provided as the way they are below mentioned)
Environment variables
Classpath
D:\j2sdk1.4.2\lib;D:\Tomcat5.0\common\lib\struts.jar;D:\Tomcat5.0\common\lib\servlet-api.jar;D:\Tomcat5.0\common\lib\commons-beanutils.jar;.;
Path
D:\j2sdk1.4.2\bin;D:\Tomcat5.0\bin;.;
System variables
CATALINA_HOME
D:\Tomcat5.0
14. Once we have set all the variables the software is ready.
15. To check whether our installation has been success.
Type
http:\\localhost:8080 in the explorer then we see a type of page as shown below
16. Now if we need to run struts applications
Copy the struts zar file from struts-1.2.7(can be downloaded from jakartha.apache site) into
D:\Tomcat5.0\common\lib
Note: When ever we are including a zar file newly into the library files we need to set the environment variables
As an example see the picture
after this also copy “struts-blank.war “ file from
struts-1.2.7\webapps
and paste into the location
D:\Tomcat5.0\webapps
Now u can run any struts application.
All the struts applications should be placed inside the webapps
ie in
D:\Tomcat5.0\webapps
Thus we can install Tom cat web server and also can apply it for struts application..