Configuring Tomcat in Eclipse

In this post we shall see configuring Tomcat in Eclipse, the same steps can be followed for other servers as well.

1. Eclipse Perspective

In order to work with Tomcat we should switch perspective within eclipse to Java EE mode. This can be done by

Windows –> Open Perspective 

and then selecting Java EE.

Step1

2. Configure Tomcat

    a. From the below menu bar select Servers tab.

Step2

 

after selecting the Servers tab click on new server wizard.

    b. Select the Tomcat version you are interested in configuring

Step3

    c. Enter a name for this server or default it, select the Tomcat installation directory and also the JRE.

Step4

3. Add any web applications from the workspace

Add any web applications from the eclipse workspace or this step can be skipped and the applications can be added later.

Step6

4. Start Tomcat

After the above Step we can start using Tomcat by right click and select either Debug or Start.

Step8

5. Change Tomcat Settings.

If we wish to change the default settings of Tomcat then we can do so by double click on the Tomcat Server, the settings page is opened where in we can change the settings of tomcat such as port on which it runs etc.

Step7

I hope this has been useful for you and I’d like to thank you for reading. If you like this article, please leave a helpful comment and share it with your friends.

Leave a Reply

Your email address will not be published. Required fields are marked *