0

Whenever i try to run my servlet program on the server, it shows this error:

Several ports (8005, 8080, 8009) required by Tomcat v7.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 tried changing the port numbers but still there is issue with the port number. What should I do?

1
  • To get open ports follow the below steps, open cmd.exe, execute cmd "netstat -ano", Pick any one which you find is free Commented Jul 14, 2016 at 5:16

2 Answers 2

1

To resolve this issue,

  1. Open tomcat bin
  2. Execute shutdown batch file for windows
  3. Refresh eclipse and it will solve the problem

Hope this answer is helpful

Sign up to request clarification or add additional context in comments.

Comments

0

If nothing works, end all services which are active and using that port. Usualy port number 8080. Also, you can do this:

right click proj-> properties-> Targeted Runtimes -> tick tomcat version on your pc or create new one

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.