Powered by Blogger.

Installing and Configuring Tomcat 6.0

>> Sunday, September 9, 2012

Apache Tomcat is an open source software implementation of the Java, Servlet and JavaServer Pages technologies.We can use this to run our Java,Jsp and Servlet based web applications.We can deploy and monitor our application in this.

Double click on apache-tomcat-6.0.14.exe file.A prompt shows in windows 7 to accept installation.Before installing the tomcat you close all other applications.This will make it possible to update relevant system files without having to reboot your computer.

 Step 1: A Welcome Setup wizard displays after double clicking setup file. Click on Next button.

 Step 2: Accept the License Agreement by clicking I Agree button
Step 3: Choose Components and features to install.
  • Click on first Check box to create a Start Menu program group.
  • Check the Documentation box to Install the Tomcat Documentation bundle.This nclude   documentation on the servlet container and its configuration options, on the Jasper JSP page compiler, as well as on the native webserver connectors.
  • Check Examples box to install some examples on servlets and jsp web applications.


Step 4: By default tomcat chooses: C:\Program Files\Apache Software Foundation\Tomcat 6.0. if you want to change the location D:\ or E:\ for the space consumption you can choose other drive.
 Step 5: The default port is 8080.Tomcat default port range is 8080 to 8192. For admin login enter username and password. i have given only username as "admin" with no password. click Next
 Step 6: It chooses Java Virtual Machine path selection by default as C:\Program Files\Java\jre1.6.0_05 then click Install button

 few seconds will take to install the software.Once it is done, we can see two check boxes with Run Apache Tomcat and Show Readme options. if you want to start immediately to test your server you can check the first one. then click finish button.

Configure the Tomcat in your System.
Set the class path in System or User Variables. Right click on MyComputer--> Select properties --> Advanced System settings(Windows7)-->Advanced tab -->Environment Variables button at bottom --> select New button Enter JAVA_HOME in Variable name and jdk path in Variable Value. Same for Tomcat as name TOMCAT_HOME and the location installed as C:\Program Files\Apache Software Foundation\Tomcat 6.0; Enter semicolon at the end.




Once the tomcat has started, open your browser to the following URL:
you should see the default Tomcat home page, which displayed below.

After Configuring the tomcat in your local system. Then if you are using Eclipse or MyEclipse Configure Tomcat in MyEclipse too.

Related Posts Plugin for WordPress, Blogger...
© javabynataraj.blogspot.com from 2009 - 2022. All rights reserved.