I received the following error while attempting to execute a Servlet program in Eclipse Mars EE.
'Starting Tomcat v8.0 Sever at localhost' has encountered a problem.
Port 8080 required by Tomcat v8.0 Server at localhost is already in use. There 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).
What should I do to stop the process? I'm assuming that Tomcat 7 server must be stopped. How shall I do it if my operating system is Windows 8?
Error Screenshot:
All I had to do was to change the port numbers
.
Open Eclipse
Go to Servers panel
Right click on Tomcat Server select Open
, Overview window
will appear.
Open the Ports
tab. You will get the following:
Tomcat adminport
HTTP/1.1
AJP/1.3
I changed the port number of HTTP/1.1
(i.e. to 8081
)
You might have to also change the port of Tomcat adminport
(i.e. to 8006
) and of AJP/1.3
(i.e. to 8010
).
Access your app in the browser at http://localhost:8081/...