• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in JAVA by
Q:
How to Fix “Server Tomcat v7.0 Server at localhost failed to start” without stack trace while it works in terminal

So got this project which worked just fine before the weekend (have other problems, but at least Tomcat launched). Now when I try to launch the Tomcat server it immediately gives the following error:

Server Tomcat v7.0 Server at localhost failed to start.

However, I can start Tomcat just fine via Terminal, and this problem is occurring in Eclipse (Eclipse Java EE IDE for Web Developers. Version: Juno Service Release 1 Build id: 20121004-1855)

I scoured several forums trying to find a solution but to no avail! Please help someone out in need.

1 Answer

0 votes
by
To resolve this issue, you have to delete the .snap file located in the directory:

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

After deleting this file, you could start Eclipse with no problem.

Open the Servers Tab from Windows → Show View → Servers menu

Right click on the server and delete it

Create a new server by going New → Server on Server Tab

Click on "Configure runtime environments…" link

Select the Apache Tomcat v7.0 server and remove it. This will remove the Tomcat server configuration. This is where many people do mistake – they remove the server but do not remove the Runtime environment.

Click on OK and exit the screen above now.

From the screen below, choose Apache Tomcat v7.0 server and click on next button.

Browse to Tomcat Installation Directory

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

Click on Finish after Adding your project

Now launch your server. This will fix your Server timeout or any issues with old server configuration. This solution can also be used to fix “port update not being taking place” issues.

Related questions

0 votes
asked Nov 22, 2020 in Web Hosting by sharadyadav1986
0 votes
asked Jan 9 in JAVA by SakshiSharma
...