Apache Tomcat 404 Error

前端 未结 10 951
终归单人心
终归单人心 2021-01-11 13:49

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 Di
相关标签:
10条回答
  • 2021-01-11 13:49

    1- double click on server 2- Make Sure You have switched correctly the directory for tomcat here

    Before

    After Fix

    3- And Even if you do #2 above you may need do this here as well !

    Again here !

    0 讨论(0)
  • 2021-01-11 13:50

    see if below URL Helps to resolve the issue

    http://www.youtube.com/watch?v=orctlc_F5Y0

    0 讨论(0)
  • 2021-01-11 13:50

    Launch your eclipse Run as administration:
    For that right click on eclipse-----> run as administration.
    It works.

    If it not works then again do same and then 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.

    0 讨论(0)
  • 2021-01-11 13:55

    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.

    0 讨论(0)
  • 2021-01-11 13:57

    The problem is just as drvdijk mentioned, in order to run a webapp on tomcat from eclipse, it needs to be "deployed" to it. This can be done by right clicking the tomcat server -> add and remove

    Alternatively, you can try to startup your tomcat server outside of eclipse. Go to your command line and type

      $CATALINA_HOME\bin\startup.bat          (Windows)
    
      $CATALINA_HOME/bin/startup.sh           (Unix)
    

    Where $catalina_home is the directory of where you installed tomcat

    0 讨论(0)
  • 2021-01-11 14:00

    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!

    0 讨论(0)
提交回复
热议问题