Trying configure tomcat in my eclipse but "Port 8080 required by Tomcat v7.0 Server at localhost is 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 tried to set up tomcat environment several times but it hitting me with this error any thing i need to do in my eclipse?
10 Answers
22
votes
10
votes
5
votes
to overcome this kind of problem follow the steps below:
- open command prompt.
- c:\Users\CGITS_04> netstat -o -n -a | findstr 0.0:80
- then you can see a list of process that is currently using port 80.
- open task manager->search the process-> select and end process.
- Now open eclipse and start tomcat.
- happy coding!
2
votes
0
votes
0
votes
0
votes
0
votes
-1
votes
Hey i got the solution recently... Just copy the "ROOT" folder FROM C:\Program Files\ Apache Software Foundation\ Tomcat 7.0\ webapps \ TO your_Workspace\ .metadata\ .plugins\ org.eclipse.wst.server.core\ tmp0 \wtpwebapps\ and over write it when asked..
This is needed because eclipse forgets to copy that root folder to its workspace.. Just right click on Apache tomcat 7.0 in servers tab and observe that in location will be workspace metadata by default example:"location:[workspace metadata]". Therefore it will find the root folder which has the welcome page in it and the 404 page not found error will be displayed. Thankyou ..
netstat
of some kind to see what is currently occupying that port? – Jarednetstat
and it will show you what connections are being made on the machine (might have to donetstat /all
but this takes forever). One of them should give an ip address and end in:8080
and should give you a clue as to what is currently using that port. Once that is known you should be able to view your services and figure out what needs to be shut off – Jared