This question should have been answered here, but I had to ask again because the resolution was inconclusive.
I am trying to configure my Tomcat's server.xml
to work on TCP 8080 port. But it's always failing because the port 8080 is being used. I tried to run netstat -ano
to find out what was using port 8080 and it seemed to be Firefox at that time (yes, it confuses me too). When I did this http://localhost
, I got a 404 whereas doing http://localhost:8080/
the address was working okay. The problem becomes apparent when I clik logout on my sample web application and it looks for localhost/?logout
page. I can force the link to find localhost:8080/?logout
, but this is a bodge, not a proper fix.
Does anyone know a solution to this problem?
http://localhost
would send the browser to localhost port 80, not 8080. You say you get a 404 from that URL. So apparently something is listening on port 80. Maybe some other web server is supposed to be acting as a frontend for tomcat here?localhost
doesn't resolve to anything, butlocalhost:8080
does.....and this is an SCM maintained app, so other developers have checked in the correct and working version of the app with the correct server.xml config.....my browser settings are identical to everyone else...http://localhost
, I got a 404". That would mean some kind of HTTP server is listening on port 80 and responding to requests. Now you say "localhost doesn't resolve to anything". This seems to be contradictory. Are you expecting your application to work through the URL without a port number, or with the 8080 version of the URL?localhost
first....it gave me a 404. Then i tried with 8080 and it gave my the initial login page. Sorry for the contradictory statement.