Error With Port 8080 already in use

Daniel Tascón picture Daniel Tascón · Nov 10, 2010 · Viewed 249.9k times · Source

Can anyone help me to solve the following case?

I am trying to generate my first web site using java and working with Eclipse Galileo running on Ubuntu 9.10. Since I generate my first lines of code I haven't seen the web. All the time when I try to run the program I get the following error:

Several ports (8080, 8080) required by Tomcat v6.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).

I have read a lot about the way to change the ports for my tomcat (pass from the 8080 to 80) but it has been impossible. I read some forums where the way to solve this problem is going to the file that contents the server number for tomcat, which is a XML file, but when I open the folder there is not a xml file with the name.

I already explored the port using sudo lsof -n -P -i :, start and shut-down tomcat but the mistake is still there.

What can I do?

Thanks a lot.

Answer

Sobha picture Sobha · Mar 13, 2013

Click on servers tab in eclipse and then double click on the server listed there. Select the port tab in the config page opened.Change the port to any other ports.Restart the server.