Server Tomcat Server at localhost failed to start in Eclipse

On this page, you will get the complete solution to how to resolve Tomcat Server at localhost failed to start. Most of the time Java Web Developer facing the problem that their Tomcat Server failed to start at the localhost in Eclipse IDE.

When you are working on a project and all is going in the right direction and you are ready to deploy your project and suddenly you get the message your Tomcat server is failed to start at the localhost and you have no idea what’s going wrong, it’s really irritating. Now no need to worry we have the complete solution.

How to Solve It?

Basically, there are three ways that I have tried personally and all is working fine.

Solution 1:

1-Go to your workspace directory » .metadata » .plugins » org.eclipse.core.resources folder.

2- Delete the .snap file.

3- Restart your Eclipse IDE.

Solution 2:

1- Open the Servers tab from Windows » Show View » Servers menu.

2- Right click on the server and delete it

3-Create a new server by going New » Server on server tab.

4-Click on Configure runtime environments link.

5-Select the Apache Tomcat Server and remove it. This will remove the Tomcat server configuration.

6-Click on OK and exit the screen above now.

7-From the screen below, choose Apache Tomcat server and click on Next button:

8-Browse to Tomcat Installation Directory.

9-Click on Next and choose which project you would like to deploy:

10-Click on Finish after adding your project.

11-Now launch your Server.

Solution 3:

1-Go to your workspace directory » .metadata » .plugins » org.eclipse.wst.server.core folder.

2- Delete the tmp folder.

3- Restart your Eclipse IDE

Note: If the problem still persists, you can terminate the PORT in Windows by the following command:
1: netstat -ano | findstr :<YOUR_PORT_NUMBER>

C:\Windows\system32>netstat -ano | findstr :8080
	TCP	 [::]:8080	    [::]:0	    LISTENING	3740

2: taskkill /PID <PID_OF_YOUR_PORT> /F

C:\Windows\system32>taskkill /PID 3740 /F
SUCCESS: The process with PID 3740 has been terminated.

To ensure that whether it is terminated or not run the first command again. You will get an empty line if the process is successfully ended.

Similar Posts

About the Author

Atul Rai
I love sharing my experiments and ideas with everyone by writing articles on the latest technological trends. Read all published posts by Atul Rai.