Configuring Tomcat in Eclipse
We will perform the following steps to configure Tomcat in Eclipse:
- In the Java EE perspective of Eclipse, you will find the
Serverstab at the bottom. Since no server is added yet, you will see a link in the tab as shown in the following screenshot—No servers are available. Click this link to create a new server....

Figure 2.1: The Servers tab in Eclipse JEE
- Click the link in the
Serverstab to add a new server. - Expand the
Apachegroup and select the Tomcat version that you have already installed. If Eclipse and the Tomcat server are on the same machine, then leaveServer's host nameaslocalhost. Otherwise, enter hostname or IP address of the Tomcat server. ClickNext:

Figure 2.2: Selecting a server in the New Server wizard
- Click the
Browse...button and select the folder where Tomcat is installed.
- Click
Nextuntil you complete the wizard. At the end of it, you will see the Tomcat server added to theServersview. If Tomcat is not already started, you will see the...