Tomcat 7 configuration in Eclipse results in HTTP Status 404

5

I downloaded the tar-gz version of TomCat 7 and in linux manually set the variable CATALINA_HOME I typed the command $CATALINA_HOME/bin/startup.sh and hit http://localhost:8080/ , it worked normally ( appeared home I've been using the servers tab I've been adding a new server, I've selected apache Tomcat 7 and put the Tomcat directory on my machine (the same one used in the variable CATALINA_HOME ), I give a start in TomCat and it appears in the log of eclipse:

  

INFORMATION: Server startup in 562 ms

But when I access the localhost on port 8080, nothing happens, only HTTP Status 404 appears, honestly I do not know what's happening, did anyone have the same problem? do you have any idea?

  

tomcat version: Apache Tomcat7.0.57

     

Eclipse version: Eclipse Java EE IDE for Web Developers.

     

Version: Luna Service Release 1 (4.4.1)

     

Linux distribution: Ubuntu 14.04.1 LTS

    
asked by anonymous 05.01.2015 / 00:02

1 answer

7

This is a common behavior of the Apache Tomcat configuration in Eclipse. This is because, when the server is created within Eclipse, the metadata (temporary information inside the Servers folder) of the Eclipse Workspace is used, not the Tomcat installation directory.

If you prefer, you can change it by double-clicking the Tomcat server in the Servers tab, and in the Server Locations option, select Use Tomcat installation .

The difference is that by checking this option, the changes will be reflected directly from the directory where Tomcat is installed.

    
05.01.2015 / 02:51