How to configure Apache Tomcat in eclipse

In this post, we will see how to configure apache tomcat in eclipse.

As per wikipedia, Apache Tomcat, often referred to as Tomcat, is an open-source web server and servlet container developed by the Apache Software Foundation (ASF). Tomcat implements several Java EE specifications including Java Servlet, JavaServer Pages (JSP), Java EL, and WebSocket, and provides a “pure Java” HTTP web server environment for Java code to run in.
We generally deploy our web applications on apache tomcat server. When you download eclipse, you need to configure tomcat in it. We will see step by step configuration of apache tomact in eclipse.

Step 1:

Download apache tomcat server from tomcat 7 download. You need to download it based on your system operating system. (Windows or mac).I have provided link for tomcat 7. If you want different version, you need to download it. You need to extract it after downloading.

Step 2:

Open eclipse ide.
Step 2a: go to Java EE perpective.
Step 2b: Open Servers tab
Step 2c: click on “new server wizard” as shown in the below diagram.

Step 3:

Step 3a: Select “Tomcat v7.0 Server”
Step 3b: click on Next.

Step 4 :

Step 4a: Browse to  tomcat installation directory or if you have downloded zip then browse to extract folder.
Step 4b: click finish.

Step 5:

Step 5a : Double click on servers tab/
Step 5b : If Application deployment takes more than 45 secs then make changes to timeout.
Step 5c: If you want to change default http port.
Step 5d : If you want to take full control over apache tomcat installation.

Step 6:

Right click on the server and click on start.

Then you will see following text in console:

Step 7:

Open http://localhost:8080 and you will see following output:

Bingo!! We are done with the setup of apache tomcat in eclipse

Related Posts

  • Make requirements.txt in Python
    03 May

    Make requirements.txt in python

    Table of ContentsWhat is the requirements.txt file in Python?Ways to make requirements.txt file in PythonUsing the pip to make requirements.txt in PythonUsing the conda command to make requirements.txt file in PythonUsing the pipreqs package to make requirements.txt file in PythonConclusion What is the requirements.txt file in Python? Every package is also updated regularly and features […]

  • Create an array of 1 to 10 in Python
    03 May

    Create an Array of 1 to 10 in Python

    Table of ContentsIntroductionHow to create an array of 1 to 10 in Python?Using the range() function to create an array of 1 to 10 in Python.Using list comprehension along with the range() function to create an array of 1 to 10 in Python.Using a user-defined function to create an array of 1 to 10 in […]

  • Remove Urls from String in Python
    03 May

    Remove Urls from Text in Python

    Table of ContentsIntroductionWays to remove URLs from Text in PythonUsing the re.sub() function to remove URLs from Text in PythonUsing the re.findall() function to remove URLs from Text in PythonUsing the re.search() function to remove URLs from Text in PythonUsing the urllib.urlparse class to remove URLs from Text in PythonConclusion In this post, we will […]

  • Create a list from 1 to 100 in Python
    03 May

    Create a List from 1 to 100 in Python

    Table of ContentsWays to create a list from 1 to 100 in PythonUsing the range() function to create a list from 1 to 100 in PythonUsing the numpy.arange() function to create a list from 1 to 100 in PythonUsing the for loop with range() to create a list from 1 to 100 in PythonConclusion In […]

  • How to initialize an array in Constructor in C++
    23 April

    How to initialize an Array in Constructor in C++

    Table of ContentsArraysConstructors of a ClassWays to initialize an array in Constructor in C++Initialize an array in Constructor With std::fill()Initialize an array in Constructor Using for LoopInitialize an array in Constructor Using Member Initializer ListConclusion This article discusses methods of initializing an array in constructor in C++. Let us first discuss arrays and constructors in […]

  • Set an array to another array in java
    23 April

    Set an Array Equal to Another Array in Java

    Table of ContentsSetting an Array Variable Equal to Another Array VariableSet an Array Equal to Another Array in Java Using the clone() MethodSet an Array Equal to Another Array in Java Using the arraycopy() MethodSet an Array Equal to Another Array in Java Using the copyOf() MethodSet an Array Equal to Another Array in Java […]

Comments

Leave a Reply

Your email address will not be published.

Subscribe to our newletter

Get quality tutorials to your inbox. Subscribe now.