my dog learned polymorphism*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "8080 is already in use" Watch "8080 is already in use" New topic
Author

8080 is already in use

Vydha Sridevi
Greenhorn

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.
Sri





[Thumbnail for Error with tomcat dump.png]

praveen murali
Greenhorn

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
Greenhorn

Joined: Jun 02, 2012
Posts: 8
Just curious!! was this resolved ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 8080 is already in use
 
Similar Threads
big question on installation of tomcat
J2EE Developers Guide Chapter 4
Eclipse - J2EE perspective - Tomcat question...
port 8005 8080 and 8009 not working on Tomcat 6.0.32 with jdk 1.5 installed
tomcat 6, eclipse ganymede, running my first jsp