0

The Apache Tomcat server is started but it does not open in the browser (i.e. localhost) giving 404 error.

Tried changing port no in server.xml, then changing server location to Tomcat installation but nothing worked. Eclipse gives these errors while starting the Tomcat server, shown in the screenshot:

enter image description here

f_puras
  • 2,521
  • 4
  • 33
  • 38
  • 1
    Instead of pasting screenshot, you should paste the error message instead. – Raptor Feb 15 '17 at 06:54
  • SEVERE: Error deploying web application directory D:\apache-tomcat-8.5.9-windows-x64\apache-tomcat-8.5.9\webapps\ROOT java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: – wertle123 Feb 15 '17 at 07:11
  • You have to offer more information for identifying problem. For example : http://stackoverflow.com/q/35224311 – Beck Yang Feb 16 '17 at 16:10

1 Answers1

0

This usually only happens if your configuration is screwed up or the mapping from your IDE to your webapp folder. I would set server.xml back to normal. Then verify your web.xml file is in the correct location and configured properly. Look it up in your eclipse config and see if eclipse is actually finding it. Sometimes if your IDE does not find web.xml then when it builds you get a 404.

You can rule out your IDE by building your WAR then running it directly in Tomcat without eclipse.

Usman Mutawakil
  • 4,993
  • 9
  • 43
  • 80