DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workkloads.

Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • Simplify NoSQL Database Integration in Java With Eclipse JNoSQL 1.1.3
  • Domain-Driven Design: Manage Data With Jakarta Data and JNoSQL
  • JMeter Plugin HTTP Simple Table Server (STS) In-Depth
  • Understanding and Learning NoSQL Databases With Java: Three Key Benefits

Trending

  • Beyond Microservices: The Emerging Post-Monolith Architecture for 2025
  • Medallion Architecture: Efficient Batch and Stream Processing Data Pipelines With Azure Databricks and Delta Lake
  • Virtual Threads: A Game-Changer for Concurrency
  • How to Format Articles for DZone
  1. DZone
  2. Software Design and Architecture
  3. Integration
  4. Tomcat Server Failed to Start From Eclipse

Tomcat Server Failed to Start From Eclipse

Having problems starting Tomcat from Eclipse?

By 
Sirsendu Konar user avatar
Sirsendu Konar
·
Updated Jul. 05, 19 · Tutorial
Likes (1)
Comment
Save
Tweet
Share
137.6K Views

Join the DZone community and get the full member experience.

Join For Free

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 fix 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:

2. Remove .snap file from this directory

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

Or

3. Remove temp file from this directory

<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 fix the Eclipse Error: Starting Apache Tomcat at localhost has encountered a problem!

The error looks something like this:

Tomcat Error

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 fixing the issue:

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

2015-07-07_20-37-40

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)

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:

2015-07-07_21-25-22

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.

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”

2015-07-07_21-26-04

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.

Apache Tomcat Eclipse

Opinions expressed by DZone contributors are their own.

Related

  • Simplify NoSQL Database Integration in Java With Eclipse JNoSQL 1.1.3
  • Domain-Driven Design: Manage Data With Jakarta Data and JNoSQL
  • JMeter Plugin HTTP Simple Table Server (STS) In-Depth
  • Understanding and Learning NoSQL Databases With Java: Three Key Benefits

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!