tomcat6eclipse-3.5

Starting up tomcat-6.0.20 from eclipse-3.5.0 (galileo) leads to the 404 error


Console dogs me. Can anybody help?

The sad story starts like this. My OS is ubuntu-9.04. I installed tomcat-6.0.20 by extracting it from .tar.gz package and put it under the /usr/share/tomcat-6.020 directory.

Then I started tomcat from console, and everything seemed to be fine. localhost answered with the $CATALINA_HOME/webapps/ROOT/index.html page.

The next step was to put my tomcat in the eclipse's servers list. So, I went to Preferences > Server > Runtime Environment > Add > Apache Tomcat v6.0 (here I also browsed to my tomcat and changed JVM from JRE to JDK). Finally, I added my server to the Servers list.

So, having everything configured, I started my tomcat from the eclipse, opened a browser and asked for localhost. 404 all over sudden. Despite the fact that the eclipse's console has shown no errors.

Has anybody encountered the same problem?


Solution

  • Open your Tomcat settings (double click or F3 on your Tomcat instance in 'Servers' view in Eclipse):

    1. Make sure configuration path is valid and configuration is valid
    2. Click on modules tab and make sure your app is deployed.