Skip to main content

Tomcat

Apache Tomcat is one of the open source web server to test web applications. Continue reading this article to know download and installation of the tomcat server in windows environment. Also, I have explained how to change the port number of tomcat from by default 8080 to another number.

Download:
First, we need to download the latest version of the Tomcat web server installable file as .exe file by using these link Tomcat 6.0 to download.

Installation:
Tomcat web server executable file download has been completed, we will run(double click) .exe file to install tomcat web server. When we started running the Tomcat web server that will show the below page, It means the started installation process.


Once we will get the above screen, we need to press the 'Run' to go further installation of the Tomcat web server. When we started running the Tomcat server installation we will get the below screen in the process of tomcat installation.


In the above image we need to click on 'Next' button to proceed further installation of tomcat web server.


When we will get the above screen, there we need to accept the tomcat web server agreement by clicking on 'I Agree' button. This is also helps us to proceed further installation of tomcat . We should accept the agreement to install Apache tomcat by clicking on 'I Agree' button, then we will get the below UI on the screen.


The above choose components will gives you few of optional components to select. But, first one Tomcat is mandatory field to install. Once the selection has been completed just click on 'Next' button to move farther, you may get like below UI on the screen.


In the previous screen which is showing is the important step in tomcat installation process. Here, if we want to change the 'port numbers', 'username' and 'password'. These three fields are user defined fields which will helps at the tomcat login process. If you have already installed any of the other servers in your PC. Here, you can change port numbers, username and password. These values are not match with existing server information. Once you have entered all the information, click on 'Next' button proceed.


In the above screen we will come to know the directory path of the JRE where we were already installed in our machine. That will automatically display's when java exist's in your PC. Otherwise that will ask you to browse the JRE folder. Once your setting the JRE , just click on 'Next' button for further installation.


In the above screen we will see the installation directory of the tomcat server. If we need to change into another directory we can browse the directory path by clicking on browse button. T he above one is asking you where to install Apache Tomcat. By default that will show you above path user 'Program Files'. You just click on 'Install' button to install Tomcat into your machine. When your clicking on Install button that may show below image.


You just click on 'Ok' to install Apache Tomcat.

In the above one is showing like Apache Tomcat Installation progress. Once installation will be completed, you will get the below image on your screen. You just click 'Finish' button on to finish installation and 'Run Apache Tomcat'.



Congratulations .........Your successfully completed Apache Tomcat Installation.  

Change the Tomact Port Number:

Follow these steps to change Tomcat port number from installed directory.
  1. Go into Tomact installation directory and open 'conf' directory to edit 'Server.xml' file.
  2. Find following similar statement in Server.xml file.
  3. <Connector port="8080" maxHttpHeaderSize="8192"
                   maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
                   enableLookups="false" redirectPort="8443" acceptCount="100"
                   connectionTimeout="20000" disableUploadTimeout="true" /> 
  4. By default Tomcat Port number will be "8080". Replace this number with your own number. The below statement instruct Tomact runs on port "8181".
  5. <Connector port="8181" protocol="HTTP/1.1"
                   connectionTimeout="20000" 
                   redirectPort="8443" />
  6. Save Server.xml and restart Tomcat server. Done.

Comments

Popular posts from this blog

JVM, JRE and JDK in Java

JVM, JRE and JDK are the most basic common concepts to know in java. These are the basic features to understand how Java architecture works? JVM stands for Java Virtual Machine, which doesn't have any physical directories created in java installation. JRE stands for Java Runtime Environment, which creates the directory under Java installation path and also present in JDK. JDK stands for Java Development Kit, which creates the directory in Java installation path and also it has it's own JRE. Since we have already learn that Java is platform independent means if we have implemented any of the java class in one environment, it will be executed in any other environment and provides the same output. But, JVM, JRE and JDK all are platform dependent . So that, for windows, linux, unix, mac, solaris..etc has it's own JVM, JRE and JDK. One will be not compatible with other environments. While installing the Java, we might come to know a bit about JRE and JDK. But, JVM is the other...

Prime, Fibonacci and Factorial number with example in java

Prime number, Fibonacci series and Factorial number programs are most commonly asked questions in interview. Read this article to know what is and how to write programs for prime number, fibonacci series and factorial number. Prime Number: prime number is natural number greater than 1 that has no positive divisor other than 1 and itself. A natural number greater than 1 is not a prime number, is called Composite number . For example, 7 is a prime number. Because it can divide with 1 and 7 only. Where as 8 is composite number. Since it has the divisor 2 and 4 in addition to the 1 and 8. The below example represents the finding the passing number is prime number or not. If the passing number is prime number it will print true otherwise it will print false. package com . javatbrains . practice ; public class PrimeNumber { public boolean isPrimeNumber ( int number ) { if ( number <= 1 ) return false ; // There's only one ...

How to insert images into database using JDBC?

How to insert images into database table by using JDBC? To know about these topic follow the below lines,           Before going to write a JDBC program for inserting images into database table, we need to create a specific table for inserting images column datatype. For creating the database table, execute the below command in MySQL command prompt. 1 2 3 4 CREATE TABLE ` images ` ( ` image_id ` int ( 11 ) NOT NULL AUTO_INCREMENT, ` image_flag ` int ( 11 ) NOT NULL , ` image ` longblob NOT NULL , PRIMARY KEY ( ` image_id ` ));           After executing the above query in MySQL command prompt, execute the below query to know weather the above table query is created or not. 1 Show tables;            When you have executed the above query that will show you the list of table which all exists in the current database. Current tab...