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

Multithreading in java with example

Multithreading  is one of the most important concept in core java. In this article we will learn what is multithreading? , what is the use of it? and What is the use of Synchronization and when to use it?  with detailed examples. At a time, two or more threads are accessing the same object is called as Multithreading  in Java .  First, we will create two threads for two objects. It is also possible to run two or more threads on a single class object. In this case, there is a possibility to get unreliable results. If the two threads are perform same task, then they need same object to be executed each time. For your better understanding, take an example of any reservations like, railway, movie ticket booking,etc. Let us think only one berth is available in a train and two passengers are asking for that berth. The first person has sent a request to allocate that ticket/berth to him. At the same time, the second person also sent a request to allocate that ...

Git installation for AngularJS 2 in Windows 10

Download Git latest version from https://git-scm.com/downloads or you click on the below link to download directly for windows https://git-scm.com/download/win . Once download completes, click on executable file to start installation process and choose Yes to allow the software installation in windows 10. Click on Next button to continue further installation. Browse the isntallation directory and click on Next button to continue. Select the list of components which you want to be installed and click on Next button to proced further installation. Type the shortcut name for Start menu and click on Next button. Select how you want to use the Git and click on Next button. For Windows no need to change anything, let it be the default one. Choose the Use the OpenSSL library and click on Next button. Select how should Git treat line ending in text files and click on Next button. Select which terminal emulator to use with Git and click on Next button. Configure extr...

JNDI configuration for Tomcat 9 with Oracle

In this article, I am going to place the required source code to get data from the table by using the JNDI configuration. Below are the environment details that I have configured currently. Windows - 7 Oracle - 10g Tomcat - 9 JDK - 8 Eclipse Oxygen Ojdbc6 jar required First, we need to create the Dynamic Web Project. If you don't know how to do <Click Here>. I have faced a lot of issues before getting the output like 405, No driver class to load, etc. I am using JSP & Servlets in the current explanation. Before started writing the application logic, we need to do the below configuration in the installed tomcat directory. Place OJDBC6.jar in the Tomcat LIB directory. Add this Resource under <GlobalNamingResources> in Server.xml file which is present under the conf directory in Tomcat. < Resource name = "jdbc/myoracle" global= "jdbc/myoracle" auth = "Container" type= "javax.sql.DataSource" driverClass...