Apache Tomcat 7 Download For Windows 7 64 Bit UPDATED
Apache Tomcat 7 Download For Windows 7 64 Bit
Introduction
In this article, nosotros discuss how to install and configure Apache Tomcat Server and have a await at Apache Tomcat Server.
What is Apache Tomcat
It is an awarding server or spider web server or servlet container developed by the Apache Software Foundation (ASF) and released under the Apache License version 2. HTTP web servers provide an environment for Coffee code to run in. It includes tools for configuration and management, merely can also be configured past editing XML configuration files. Most of the mod Java web frameworks are based on servlets and JavaServer Pages and tin run on Apache Tomcat, for example Struts, JavaServer Faces, Leap, etcetera.
Apache Tomcat7.0.XX new released
The Apache Tomcat team has released version seven.0.40 of Apache. They removed several fixes that stop Tomcat attempting to parse text, improved handling and reporting if a ConcurrentModificationException occurs while checking for memory leaks, etcetera.
How to Install Tomcat 7
There are sure steps we must follow for configuring Apache Tomcat 7.
Step 1
Download and Install Tomcat
- Become to http://tomcat.apache.org/download-seventy.cgi then go to the Binary Distribution/Core/ and download the "zip" package (for example "apache-tomcat-7.0.40.nil", nigh 8MB).
- Now unzip the downloaded file into a directory of our choice. Don't unzip onto the dekstop (since its path is hard to locate). I suggest using "due east:\myserver". Tomcat will exist unzipped into the directory "e:\myserver\tomcat-7.0.40".
Stride 2
Cheque the installed directory to ensure it contains the following sub-directories:
- bin folder
- logs folder
- webapps folder
- work folder
- temp folder
- conf binder
- lib folder
Step 3
At present, nosotros demand to create an Environment Variable JAVA_HOME.
We need to create an surroundings variable called "JAVA_HOME" and set it to our JDK installed directory.
- To create the JAVA_HOME surround variable in Windows XP/Vista/vii we need to push the "Start" push button so select "Control Panel" / "Organization" / "Avant-garde system settings". Then switch to the "Advanced" tab and select "Surround Variables" / "System Variables" then select "New" (or "Edit" for modification). In "Variable Name", enter "JAVA_HOME". In "Variable Value", enter your JDK installed directory (due east.grand., "c:\Program Files\Java\jdk1.7.0_{xx}").
- For ensuring that information technology is set correctly, we demand to start a command shell (to refresh the environment) and issue:
prepare JAVA_HOME
JAVA_HOME=c:\Programme Files\Java\jdk1.vii.0_{xx} <== Cheque that this is OUR JDK installed directory - Sometimes we need to prepare JRE_HOME also. So for creating JRE_HOME we need to utilise the same process. Push the "Commencement" buttonthen select "Command Console" / "Organization" / "Avant-garde system settings". Then switch to the "Advanced" tab and select "Environment Variables" / "System Variables" then select "New" (or "Edit" for modification). In "Variable Name", enter "JRE_HOME". In "Variable Value", enter your JRE installed directory (east.thousand., "C:\Program Files\Java\jre7\").
Step 4
Configure Tomcat Server
The configuration files of the Apache Tomcat Server are located in the "conf" sub-directory of our Tomcat installed directory, for example "E:\myserver\tomcat7.0.40\conf". There are 4 configuration XML files:
- context.xml file
- tomcat-users.xml file
- server.xml file
- web.xml file
Before proceeding, make a BACKUP of the configuration files.
Step 4(a) "conf\web.xml"; Enabling a Directory Listing
Open the configuration file "web.xml". We shall enable the directory listing by changing "listings" from "simulated" to "truthful" for the "default" servlet.
<param-value>true</param-value> like:
Pace 4(b) "conf\server.xml file"; gear up the TCP Port Number
Open the file "server.xml" in a text editor.
The default port number of Tomcat is 8080. At present we need to alter the TCP port number for Tomcat, since the same port number can be used past other servers like SQL Server. We may cull any number between 1024 and 65535. We shall choose 9999 in this article.
Locate the following lines, and modify port="8080" to port="9999". Similar:
<Connector port="9999" protocol="HTTP/one.1" Like
Stride 4(c) "conf\context.xml"; Enabling Automatic Reload
In that we set reloadable="true" to the <Context> element to enable automatic reload after code changes.
Add together reloadable="true" as in the following:
<Context reloadable="true">
......
</Context> Like
Step 4(d) (Optional) "conf\tomcat-users.xml"
It is used to manage Tomcat by calculation the highlighted lines, inside the <tomcat-users> elements.
In that we can add together a countersign and username as an optional step.
Stride 5
At present, offset the tomcat server
Executable programs and scripts are kept in the "bin" sub-directory of the Tomcat installed directory, eastward.g., "E:\myserver\tomcat7.0.forty\bin".
Step five(a) Commencement Server
Launch a command shell. Set the current directory to "<TOMCAT_HOME>\bin" like E:\myserver\tomcat7.0.40\bin, and run "startup.bat" as follows:

Subsequently that a new Tomcat panel window appears. Read the messages on the console. Look out for the Tomcat'south port number (double check that Tomcat is running on port 9999).......
Nosotros saw a figure like:


Step 5(b) Admission the Server
Open a browser so enter the URL "http://localhost:9999" to admission the Tomcat server's welcome page.
If we get this type of page so information technology ways we are done.

Now endeavour the URL http://localhost:9999/examples to view JSP and servlet examples.
Step five(c) How to Shutdown Server
We tin can stop the server using one of the following:
- Press ctrl-c on the Tomcat console; or
- Run "<TOMCAT_HOME>\bin\shutdown.bat" script:
// Change the current directory to Tomcat's "bin"
> eastward: // Alter the electric current bulldoze
e:\> cd Due east:\myserver\tomcat7.0.40\bin // Modify Directory to YOUR Tomcat's "bin" directory
// Shutdown the server
E:\myserver\tomcat7.0.forty\bin> shutdown
DOWNLOAD HERE
Posted by: chavarriathaddle.blogspot.com
Post a Comment for "Apache Tomcat 7 Download For Windows 7 64 Bit UPDATED"