Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Server Tomcat v7.0 Server at localhost failed to start" without stack trace while it works in terminal

Tags:

eclipse

tomcat

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.

like image 848
Marvin Effing Avatar asked Nov 06 '12 04:11

Marvin Effing


2 Answers

  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 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.

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

  7. From the screen below, choose Apache Tomcat v7.0 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. 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.

like image 157
chandrsekar.L.S. Avatar answered Sep 24 '22 23:09

chandrsekar.L.S.


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.

like image 39
Ami Avatar answered Sep 22 '22 23:09

Ami