0% found this document useful (0 votes)
205 views6 pages

Tomcat Server Failed To Start From Eclipse

This article discusses common errors that occur when trying to start the Tomcat server from Eclipse during Java web application development. The errors include "Failed to Start..." and "Starting Apache Tomcat at localhost has encountered a problem!". The article provides three solutions to resolve the first error: 1) Clean the project and server, 2) Remove a .snap file, or 3) Remove temp files. To resolve the second error, the article instructs the user to check if Tomcat is already running on the desired ports, find the process ID, end the process in the Windows Task Manager, and then try starting Tomcat from Eclipse again.

Uploaded by

Nitesh Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
205 views6 pages

Tomcat Server Failed To Start From Eclipse

This article discusses common errors that occur when trying to start the Tomcat server from Eclipse during Java web application development. The errors include "Failed to Start..." and "Starting Apache Tomcat at localhost has encountered a problem!". The article provides three solutions to resolve the first error: 1) Clean the project and server, 2) Remove a .snap file, or 3) Remove temp files. To resolve the second error, the article instructs the user to check if Tomcat is already running on the desired ports, find the process ID, end the process in the Windows Task Manager, and then try starting Tomcat from Eclipse again.

Uploaded by

Nitesh Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

5/11/2020 Tomcat Server Failed to Start From Eclipse - DZone Java

 

LIVE WEBINAR - Thursday, May 14th: Build Your Own CDN in Under 1 Hour Sign Up Now 
DZone > Java Zone > Tomcat Server Failed to Start From Eclipse

Tomcat Server Failed to Start From Eclipse


Having problems starting Tomcat from Eclipse?
by Sirsendu Konar · Jul. 05, 19 · Java Zone · Tutorial

A very common problem Java developers face while working on web projects that need to be deployed in Tomcat is the error: 'Failed to
Start...'

When we debug the application during development time and use Tomcat with Eclipse EE to deploy an application, the common error
pops up below...

Server Tomcat v.xx Server at localhost failed to start.

This wastes several hours of developers' time. However, it's very easy to ix once you know the solution — it will also save you time.
This error can be resolved in the following three cases:

1. Clean project and server

Or:

https://dzone.com/articles/tomcat-server-failed-to-start-from-eclipse 1/6
5/11/2020 Tomcat Server Failed to Start From Eclipse - DZone Java

2. Remove .snap ile from this directory

1 <workspace-directory>\.metadata\.plugins\org.eclipse.core.resources

Or

3. Remove temp ile from this directory

1 <workspace-directory>\.metadata\.plugins\org.eclipse.wst.server.core

Another similar problem is shown below. This, too, is a very common and frequent problem.

This is how you can ix the Eclipse Error: Starting Apache Tomcat at localhost has encountered a problem!

The error looks something like this:

https://dzone.com/articles/tomcat-server-failed-to-start-from-eclipse 2/6
5/11/2020 Tomcat Server Failed to Start From Eclipse - DZone Java

Most of the time, this means that Tomcat is already running in the background and Eclipse is trying to open it again on the same ports.
This is obviously not possible, as the ports will be in use.

The issue typically arises from either the Eclipse or Tomcat process crash or being stuck.

This is how you can go about ixing the issue:

1. Go to server tab and double click on the Tomcat server, the con iguration ile for Tomcat will open and look like this:

https://dzone.com/articles/tomcat-server-failed-to-start-from-eclipse 3/6
5/11/2020 Tomcat Server Failed to Start From Eclipse - DZone Java

2. Mark down the Port Number Tomcat is running on.

3. In my case, I see ports: 8013, 8014, and 8015

4. Go to command prompt and execute the following lines in succession (make sure to change ending port numbers to your own
Tomcat ports)

1 netstat -o -n -a | findstr 0.0:8013 netstat -o -n -a | findstr 0.0:8014 netstat -o -n -a | findstr 0.0:8015

Once you do so, you’ll get a result similar to this:

As you can see in the above screenshot, in my case, port 8013 is not running, but ports 8014 and 8015 are being used and they are
running using PID (process id): 15484.

This PID number (15484 in my case) is something you need to mark down.

5. Now, all you need to do is to go to your Windows Task Manager, click on Details Tab (in Windows 8), and sort the processes by PID
number.
https://dzone.com/articles/tomcat-server-failed-to-start-from-eclipse 4/6
5/11/2020 Tomcat Server Failed to Start From Eclipse - DZone Java

6. Find the Tomcat PID(s) that you found earlier, highlight the task (typically, it’ll be the Java process) and click “End Task Button”

7. Now, you can go back to Eclipse and run the task on your server as you would typically do. It should work again.

Let me know if this helped you in any way in the comments below. Thanks.

Like This Article? Read More From DZone


DZone Article DZone Article
Running Tomcat Behind Apache With mod_rewrite Don’t Like Throttling?
and mod_proxy

DZone Article Free DZone Refcard


Running Apache Tomcat as a Windows Service for Java 14
Remote Debugging [Snippet]
https://dzone.com/articles/tomcat-server-failed-to-start-from-eclipse 5/6
5/11/2020 Tomcat Server Failed to Start From Eclipse - DZone Java
Remote Debugging [Snippet]

Topics: APACHE TOMCAT , ECLIPSE , ERROR , J2EE , JAVA , JAVA WEB APPLICATION , SPRING WEB , TOMCAT , TOMCAT SERVER

Opinions expressed by DZone contributors are their own.

https://dzone.com/articles/tomcat-server-failed-to-start-from-eclipse 6/6

You might also like