Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Server Tomcat v9.0 Server at localhost failed to start

I am using Eclipse Neon and Tomcat server 9.0 and JDK 1.8 It was working well but unfortunately its giving me error 'Server Tomcat v9.0 Server at localhost failed to start.' I tried to change the ports i.e. connection port and other ports too but it did not solve my problem and this error is shown when I start the server or run the web app I am currently working on. Other solution other than change in port because I tried it and it did not resolve my problem?????

like image 818
Krishna Avatar asked Oct 17 '22 18:10

Krishna


2 Answers

  1. Delete server by navigating to Window ->Show View -> Server. Right click on server and delete it.
  2. Delete Servers folder from Project Explorer
  3. Delete .metadata of eclipse workspace (CAUTION: You will lose all your workspace settings (e.g.: key bindings, appearance, ...))
  4. Now Restart eclipse and add Apache Tomcat server.

It will work.

Screenshot

like image 164
irfan Quresh Avatar answered Oct 20 '22 23:10

irfan Quresh


I had the same problem with Tomcat 9.xx and Eclipse. None of the given solutions helped me.

However, there is a missing step (for some of us) before recreating a new Server in Eclipse you may need to add the path to a jar file. The missing step was browsing to your /Tomcat-Directory/lib/servlet-api and adding servlet-api.jar

Steps:

1- Right click on the project you work on > Build Path > Configure Build Path > Libraries > Add External JARs

2- Select all JAR files from the Tomcat/bin and Tomcat/lib

3- Click "OK"

This made it work for me. I hope it will help you as well.

Thank you.

like image 22
amit kohan Avatar answered Oct 20 '22 22:10

amit kohan