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

Was this post helpful?

Related Posts

  • 27 September

    Print Number without Decimal in Python

    Table of ContentsHow To Print a Number without Decimal in Python?Using the int() FunctionUsing the math.trunc() functionUsing the round() functionUsing the split() function along with the int() functionConclusion. Python provides a float data type that allows the storage of floating-point numbers. The data at the decimal places is also retained while using the float data […]

  • 27 September

    Repeat String N times in Java

    Table of ContentsIntroductionWhat is a String in Java?Repeat String N times in JavaSimple For Loop to Repeat String N Times in JavaUsing Recursion to Repeat String N Times in JavaString.format() method to Repeat String N Times in JavaUsing String.repeat() method in Java 11 to Repeat String N TimesRegular Expression – Regex to Repeat String N […]

  • 26 September

    Get List of Weekday Names in Java

    Table of ContentsUsing DateFormatSymbols’s getWeekdays() methodUsing DateFormatSymbols’s getShortWeekdays() method [For short names]Using DateFormatSymbols’s getWeekdays() with Locale In this post, we will see how to get list of weekday names in Java. Using DateFormatSymbols’s getWeekdays() method We can use DateFormatSymbols's getWeekdays() to get list of weekday names in Java. It will provide complete weekday names like […]

  • 26 September

    Print hex without 0x in Python

    Table of ContentsHow to print hex without 0x in Python?Using slicing along with the hex() functionUsing the replace() function along with the hex() functionUsing slicing and the zfill() function along with the hex() functionUsing the format() functionUsing %x conversionUsing f-stringsUsing the to_bytes() function along with the hex() functionConclusion. A hex or a hexadecimal string is […]

  • 26 September

    Check if Date Is Between Two Dates in Python

    Table of ContentsCheck if Date Is Between Two Dates in PythonUsing the datetime.Datetime Object to Check if Date Is Between Two Dates in PythonUsing Tuples to Check if Date Is Between Two Dates in PythonConclusion Python allows us to store and work with date values very efficiently by providing the datetime module. This module has […]

  • 26 September

    Prefix r before String in Python

    Table of ContentsPrefix r Before String in PythonConclusion 💡 Quick Definition Prefix r before String denotes raw Strings in Python. Python raw string considers backslash (\) as a literal character. This is generally preferred when you don’t want to treat backslash character as escape character. Here is an example: [crayon-633444d58db92046347363/] Output: \n \t are escape […]

Comments

Leave a Reply

Your email address will not be published.

Subscribe to our newletter

Get quality tutorials to your inbox. Subscribe now.