wood burning stoves 2.0*
The moose likes Tomcat and the fly likes When I try to start Tomcat 6.0 service, I got  the error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "When I try to start Tomcat 6.0 service, I got  the error" Watch "When I try to start Tomcat 6.0 service, I got  the error" New topic
Author

When I try to start Tomcat 6.0 service, I got the error

Marimuthu Udayakumar
Greenhorn

Joined: Jun 17, 2008
Posts: 16
Dear All,
When I try to start Tomcat 6.0 service, I got the error:

Several ports (8005, 8080, 8009) required by Tomcat v6.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 am not able to determine which application is using these ports.
I am using Windows XP Prof. SP2 and I checked all the services, but in
vein.

No other Tomcat instance is running there.

How to determine which applications are using these ports? I want to
free-up 8080 port.

Thanks in advance.
P.Marimuthu Udayakumar
http://teknoturfian.blogspot.com


Thanks and Regards,
P.Marimuthu Udayakumar
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

command will list down all the ports open/listening on windows machine.


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Marimuthu Udayakumar
Greenhorn

Joined: Jun 17, 2008
Posts: 16
Hi Sagar Rohankar,
Thanks for your reply,
I tried which you specific command "netstat -b " ,But No any process hold the port numbers(8005, 8080, 8009) ..
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
Try "netstat -a" or even http://technet.microsoft.com/en-us/sysinternals/bb897437.aspx
Marimuthu Udayakumar
Greenhorn

Joined: Jun 17, 2008
Posts: 16
Hi Misha Ver ,
Thanks for your query, I tried these all mechanism but I am not able to figure it out...
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Can you print the "netstat" command output ? There is no other reason why tomcat complaining about not finding the free port? the basic cause will be like, you might start the tomcats second instance, or any other process already busy on the same port, 8080.
Marimuthu Udayakumar
Greenhorn

Joined: Jun 17, 2008
Posts: 16
Hi Sagar Rohankar ,

This is my netstat output ....


C:\>netstat -a

Active Connections

Proto Local Address Foreign Address State
TCP marimuthu:epmap marimuthu:0 LISTENING
TCP marimuthu:microsoft-ds marimuthu:0 LISTENING
TCP marimuthu:990 marimuthu:0 LISTENING
TCP marimuthu:3389 marimuthu:0 LISTENING
TCP marimuthu:6646 marimuthu:0 LISTENING
TCP marimuthu:54465 marimuthu:0 LISTENING
TCP marimuthu:1026 marimuthu:0 LISTENING
TCP marimuthu:1052 marimuthu:0 LISTENING
TCP marimuthu:1090 localhost:1091 ESTABLISHED
TCP marimuthu:1091 localhost:1090 ESTABLISHED
TCP marimuthu:1094 localhost:1095 ESTABLISHED
TCP marimuthu:1095 localhost:1094 ESTABLISHED
TCP marimuthu:1299 marimuthu:0 LISTENING
TCP marimuthu:1353 marimuthu:0 LISTENING
TCP marimuthu:1353 localhost:1355 ESTABLISHED
TCP marimuthu:1355 localhost:1353 ESTABLISHED
TCP marimuthu:2407 localhost:1052 TIME_WAIT
TCP marimuthu:5152 marimuthu:0 LISTENING
TCP marimuthu:5152 localhost:1957 CLOSE_WAIT
TCP marimuthu:5354 marimuthu:0 LISTENING
TCP marimuthu:5679 marimuthu:0 LISTENING
TCP marimuthu:7438 marimuthu:0 LISTENING
TCP marimuthu:netbios-ssn marimuthu:0 LISTENING
TCP marimuthu:1048 enpaq.hq.teknoturf.com:3128 ESTABLISHED
TCP marimuthu:1081 enpaq.hq.teknoturf.com:3128 CLOSE_WAIT
TCP marimuthu:2372 yo-in-f83.google.com:https ESTABLISHED
TCP marimuthu:2383 yo-in-f83.google.com:https TIME_WAIT
TCP marimuthu:2395 yo-in-f83.google.com:https ESTABLISHED
TCP marimuthu:2396 yo-in-f83.google.com:https ESTABLISHED
TCP marimuthu:2397 yo-in-f83.google.com:https ESTABLISHED
TCP marimuthu:2398 yo-in-f83.google.com:https ESTABLISHED
TCP marimuthu:2399 yo-in-f83.google.com:https ESTABLISHED
TCP marimuthu:2402 yo-in-f100.google.com:https ESTABLISHED
TCP marimuthu:2403 yo-in-f100.google.com:https ESTABLISHED
UDP marimuthu:microsoft-ds *:*
UDP marimuthu:isakmp *:*
UDP marimuthu:1025 *:*
UDP marimuthu:4500 *:*
UDP marimuthu:54455 *:*
UDP marimuthu:58821 *:*
UDP marimuthu:ntp *:*
UDP marimuthu:1900 *:*
UDP marimuthu:ntp *:*
UDP marimuthu:netbios-ns *:*
UDP marimuthu:netbios-dgm *:*
UDP marimuthu:1900 *:*
UDP marimuthu:5353 *:*
UDP marimuthu:6646 *:*

Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
I would check Windows or any other firewalls on your system. It could the anti virus software that blocking ports. Another approach would be to change (8005, 8080, 8009) to some other ports and check what happens.
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Can't say anything, output doesn't mention anything particular about port 8080. Can you check the windows firewall port setting.(This is my dumb guess, really don't know whether that gonna help you or not)
Marimuthu Udayakumar
Greenhorn

Joined: Jun 17, 2008
Posts: 16
Hi Misha Ver ,
Yes, Let me check the firewalls and anti virus software,,And I have changed the Connector por as 8010 instead of "8009" and Server port as 8006 instead of "8005" and non-SSL HTTP/1.1 Connector on port as 8081 instead of "8080" ,But I am getting exact same problem which i got before..like
Several ports (8006, 8081, 8010) required by Tomcat v6.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).
Marimuthu Udayakumar
Greenhorn

Joined: Jun 17, 2008
Posts: 16
Hello All,

Thanks for your input.Its working good ,the reason behind is that Anti virus has bloked these all port numbers ,So I just disabled the firewall production in the anti virus.Now working fine.Thanks guys...

http://teknoturfian.blogspot.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: When I try to start Tomcat 6.0 service, I got the error
 
Similar Threads
Localhost:\\8080 Problem
Running Tomcat 7
starting and stoping server error
Localhost:\\8080 Problem
Localhost:\\8080 Problem