Home » JAVA, Java Server Pages (JSP)26 March 2014

Tomcat Eclipse Error: Starting Tomcat v7.0 Server at localhost has encountered a problem

I have been using Tomcat server version 7. I get the following error message when I try to run the JSP application from Eclipse IDE.

Starting Tomcat v7.0 Server at localhost has encountered a problem.

Several ports (8005, 8080) 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).

Solution

Shutdown Tomcat server

– Go to Tomcat installation directory
– Go to /bin subfolder
– Execute shutdown.bat (on Windows)
– Execute shutdown.sh (on Linux). The command to execute it is:
sh shutdown.sh

Now, start Tomcat server

– Execute the following command on terminal:
sudo service start tomcat7 (on Ubuntu Linux)

This should solve the error.

Note that: You get this error while trying to run your JSP project on the internal browser of Eclipse IDE. If this error still persist then you can just compile your code from Eclipse and run the application on your browser (outside Eclipse).

Hope it helps. Thanks.

Java Server Pages (JSP)

Get New Post by Email

Find me on

FacebookTwitterGoogle+LinkedInRSS Feed

Comments are closed.