Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

http://localhost:8080/ Access Error: 404 -- Not Found Cannot locate document: /

I'm really very new to this Tomcat stuff. I downloaded Tomcat 7.0 windows installer and installed it using the default configuration. After installing, I typed localhost:8080 in my browser to see if Tomcat is working. However,it showed error message like this: Access Error: 404 -- Not Found Cannot locate document: / And there's nothing else show with Tomcat or Apache words in the page. It seems Tomcat not responding.

I googled and searched this forum, but so far the solutions people provided didn't work for me.

  1. checked the server.xml file, 8080 is the HTTP connector port:

    Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443"

  2. I did run the Tomcat7.exe in the \bin folder. Something run in the command window and disappeared then. Nothing changed then.

  3. I set some environment system variables like JAVA HOME, PATH, and CLASSPATH according to some tutorials online.

Still not work. Only things I'm suspicious are: 1. I have two JRE folder: jre6 and jre7 in the program files directory. Tomcat7 chose the jre7 one. 2. I installed anyother server called Wamp server, which I used to learn some PHP programming with SQL usage. There's Apache in the package. Not sure if it's using 8080 port.

Please help. I've already digged online more than 2hrs for this headache. Any comments are welcome.

like image 976
sunraincyq Avatar asked Feb 05 '14 07:02

sunraincyq


2 Answers

When I had an error Access Error: 404 -- Not Found I fixed it by doing the following:

  1. Open command prompt and type "netstat -aon" (without the quotes)
  2. Search for port 8080 and look at its PID number/code.
  3. Open Task Manager (CTRL+ALT+DELETE), go to Services tab, and find the service with the exact PID number. Then right click it and stop the process.
like image 70
user4223521 Avatar answered Sep 23 '22 07:09

user4223521


A tip for others: if you have NI applications installed, the NI Application Web Server also uses the port 8080.

like image 32
Koshinae Avatar answered Sep 19 '22 07:09

Koshinae