• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
command will list down all the ports open/listening on windows machine.
 
Marimuthu Udayakumar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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) ..
 
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try "netstat -a" or even http://technet.microsoft.com/en-us/sysinternals/bb897437.aspx
 
Marimuthu Udayakumar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 470
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic