I recently was building an old application in eclipse and came across a hurdle while publishing my Spring MVC based java application on tomcat server.
The error was nothing! That strange beacause tomcat was started in eclipse and in console it was showing server startup status. But when I hit localhost:8080 in my browser the response was:
So here is the solution which I have taken to solve this problem:
- Click on Window > Show view > Server or right click on the server in “Servers” view, select “Properties”.
- In the “General” panel, click on the “Switch Location” button.
- The “Location: [workspace metadata]” should replace by something else.
- Open the Overview screen for the server by double clicking it.
- In the Server locations tab , select “Use Tomcat location”.
- Save the configurations and restart the Server.
The problem was only that eclipse was not able to locate the correct location tomcat because the tomcat maybe installed in the non – C drive of your windows PC like somewhere in the D drive. So when perform the above steps you should be able to point the eclipse to start tomcat from its actual location.