Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"HTTP Status 404 - /" (localhost:8080) when trying to install apache tomcat in Eclipse

Tags:

eclipse

tomcat

i have installed eclipse on Windows Vista and i have added a new Apache Tomcat server Apache Tomcat/7.0.27.

After i start the Apache in eclipse, i type in the url the following address "localhost:8080"

i get a page saying:

HTTP Status 404 - /
type Status report
message /
description The requested resource (/) is not available.
Apache Tomcat/7.0.27
like image 740
programmer Avatar asked Jun 12 '12 19:06

programmer


People also ask

How do I fix HTTP Status 404 not found in Eclipse?

So you need to check and use correct case for the letters in request URL. TIP: in Eclipse, you can right click on the project, then click Run As > Run on Server, the IDE will always use the correct name of the web application. Finally, you should not let the user see the raw HTTP 404 error page rendered by the server.

How do I fix HTTP Status 404 not found in Tomcat?

This error indicates that the server could not find the desired resource. This resource can be any file such as JSP, HTML, or image resource. Usually, the resource is present, but it is referenced incorrectly. In most cases, you can fix this by correcting the URL.

How can I add Tomcat server to Eclipse?

For configuring the tomcat server in eclipse IDE, click on servers tab at the bottom side of the IDE -> right click on blank area -> New -> Servers -> choose tomcat then its version -> next -> click on Browse button -> select the apache tomcat root folder previous to bin -> next -> addAll -> Finish.


1 Answers

Hi I faced same problem and below steps resolved the problem.

  1. In the eclipse right click on server and click on properties.
  2. If Location is set workspace/metadata click on switch location and so that it refers to /servers/tomcatv7server at localhost.server
  3. Save and close
  4. Next double click on server
  5. Under server locations mostly it would be selected as useworkspacemetadata
  6. Instead, select usetomcatinstallation
  7. Save changes
  8. Restart server and verify localhost:8080 works.
like image 60
PavanJoshi Avatar answered Oct 11 '22 12:10

PavanJoshi