Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache Tomcat 404 Error

I downloaded Apache Tomcat 6.0.2 And created a new server in Eclipse

  1. New -> Server
  2. Select "Tomcat v6.0 Server", Next
  3. Tomcat Installation Directory -> Where I unzipped Apache Tomcat 6.0.2
  4. Finish

Then I start the server and go to http://localhost:8080/ to see if it works. And I get a 404 error.

I've already googled it and tried to find a solution. But none of those remedies seem to work.

Any thoughts on what the problem is?

like image 677
hello_world_infinity Avatar asked Jul 22 '09 06:07

hello_world_infinity


2 Answers

If your wanting to see your Tomcat Server Homepage then you will need to specify the server path and deploy path. The default is set to Use workspace metadata (does not modify your Tomcat installation).

How to do it.

  1. Firstly open the Server's view in Eclipse. (Window >> Show View >> Servers).
  2. Double click on your Tomcat Server to open the Server Overview.
  3. Then set the Server Locations to Use Tomcat installation (takes control of Tomcat installation). Save the changes.
  4. Restart your Server and then go to localhost:8080. This should open the Apache Tomcat Homepage for your server.

Hope this helps!

like image 52
Shane Doyle Avatar answered Oct 12 '22 13:10

Shane Doyle


The error 404 appears when Tomcat can't find the localhost.ser file. In order to get rid of this follow these steps: 1) In Eclipse, right click on server --> Properties --> Click Switch Location --> Apply-->Ok (This will switch the [workspace metadata] location to the installed Tomcat location.) 2) Then go back to server, double click it. This will open Overview tab. Under this tab goto -->Server Location --> Select Use Tomcat Installation combo box.

Now close it, save it and try run your server and then rerun the URL.

like image 33
Sonu Avatar answered Oct 12 '22 13:10

Sonu