Tomcat 9.0.16 throws 404 error in eclipse

Abhimanyu
2 min readMar 19, 2019

Today I installed a new eclipse version through eclipse installer and then configured tomcat 9.0.16 as server. But tomcat started throwing 404 not found error when hitting http://localhost:8080/ in browser.

Although starting tomcat outside of eclipse, it worked fine. So after searching on internet for some time below solution worked for me.

  1. Click on Servers tab in eclipse
  2. Right click on the tomcat9 instance and click on properties.
  3. Click on general tab and then click on switch location button.

After click the switch location button location looks like below.

4. Click apply and close.

5. Now double click on tomcat 9 instance and go to “Server Locations” options and select the option “Use Tomcat Installation” and then save this configurations using ctrl+s.

Now hit http://localhost:8080/ and tomcat home page should open after starting the tomcat instance.

Software Details.

Tomcat Version — 9.0.16

Eclipse Version: 2018–12 (4.10.0)

Eclipse Build id: 20181214–0600

OS — windows 8.1 pro

--

--