• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Tomcat Port problem

 
Ranch Hand
Posts: 574
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Experts,
I'm facing problem with the starting of tomcat server,
Tomcat server is integrated with Eclipse 3.4,
when I'm trying to start the Tomcat Server i get the below message

"Tomcat V5.5 cannot run on PORT 8009 as some other process is already running on that port,change the port number"

Can anyone tell me how to make my tomcat server run fine.?
where and how do i change the port number of tomcat server.?



--
Deepak Lal
 
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You probably don't need to change anything in the Tomcat setup. But you need to determine what's already running on your machine on that port - in all likelihood another Tomcat instance. Make sure you only run one instance at a time, or you'll confuse yourself.
 
Deepak Lal
Ranch Hand
Posts: 574
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Ulf wrote: But you need to determine what's already running on your machine on that port - in all likelihood another Tomcat instance




How do i determine what's already running on that port(means port 8009),can you tell me how do i check it ?? I'm a bit

help provided will be highly aprreciated

--
Deepak Lal
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Deepak Lal:



How do i determine what's already running on that port(means port 8009),can you tell me how do i check it ?? I'm a bit

help provided will be highly aprreciated

--
Deepak Lal



If you are on windows, type netstat -a at the command prompt
on Linux netstat and nmap will do.

Hope this helps
 
Deepak Lal
Ranch Hand
Posts: 574
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
i did netstat -a and found the below fact

TCP lenovosomething 8009 .......... LISTENING



The above fact/line in quote indicates that someother process is listening to 8009 port and is unavialable for tomcat server to run.

Can anyone suggest me how should i configure my tomcat server so that it runs fine and perfectly on 8009 port without changing port settings.??
Can i kill the process lenovosomething which is already running on 8009 port so that my tomcat server runs fine @ 8009 port ,if so how should i proceeed??

Suggestions /Hints are appreciated.

Please Help...


Need Help Urgently on this...



--
Deepak Lal
[ October 24, 2008: Message edited by: Deepak Lal ]
 
Deepak Lal
Ranch Hand
Posts: 574
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please help me to resolve this Tomcat Server Port problem....
 
Deepak Lal
Ranch Hand
Posts: 574
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please help me to resolve this Tomcat Server Port problem....

 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
-if you edit your tomcat_home/conf/server.xml, find the value 8009 and change it to 8010. Better yet, if you're not using AJP connections, comment the entry for the AJP connector.
 
Amit Ghorpade
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Deepak Lal:
Please help me to resolve this Tomcat Server Port problem....



PatienceIsAVirtue
 
Deepak Lal
Ranch Hand
Posts: 574
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi David (Sheriff),
Thanks for the input ,I did implement as you have instructed,i changed the port number for ajp as below



-------------------------
Now contents of struts.xml
-------------------------



I started the tomcat server and typed http://localhost:8080/StrutsHelloWorld/act/cooler.action
in the web browser...i get the ERROR as shown below.
see below error for the details

Need Your Inputs to solve the below ERROR.



David and Gang, Please help to resolve it

--
Deepak Lal
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should ask this in a separate thread
 
Deepak Lal
Ranch Hand
Posts: 574
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry David,
I don't know the rules of JavaRanch...Once again sorry,won't repeat the same mistake again.



--
Deepak Lal
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic