Server Tomcat v9.0 Server at localhost failed to start

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.


Have you tried to put / in the webServlet above your class?

@WebServlet("/nameURL")
public class MyClass extends HttpServlet{}