File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes 8080 is already in use Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "8080 is already in use" Watch "8080 is already in use" New topic

8080 is already in use

Vydha Sridevi

Joined: Jun 01, 2008
Posts: 9
Hi everybody,
I earlier worked with Eclipse IDE, tomcat (of various versions) for very small sample web applications. Now i am working with IntelliJ IDE and tomcat.

When i tried to run tomcat say some existing version, i get this error message : "Address localhost:8080 is already in use".
So i decided to delete all the existing tomcat dumps from my hard drive and go with only one version say 7.0.27. But i get one error message which can be seen in the attached document when i try to run the server.

Please suggest me how should i delete all the information related to ealier versions of tomcat from my hard drive so that i can freshly start my tomcat server.

Thanks in advance.

[Thumbnail for Error with tomcat dump.png]

praveen murali

Joined: Jun 02, 2012
Posts: 8
You got to edit your server.xml file (found inside Tomcat installation > conf folder), in case you want to assign a different port number to tomcat as default to change the port number, can take any port number of your choice as long as that is not being used by some other process.

One other reason could be if you want to skip step 1 is that check if the services are running and stop them if they are, Do you have scheduled tomcat to start automatically ? shutdown.bat (again from bin) should help you out.
praveen murali

Joined: Jun 02, 2012
Posts: 8
Just curious!! was this resolved ?
I agree. Here's the link:
subject: 8080 is already in use
It's not a secret anymore!