aspose file tools*
The moose likes Tomcat and the fly likes Tomcat Port problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Port problem" Watch "Tomcat Port problem" New topic
Author

Tomcat Port problem

Deepak Lal
Ranch Hand

Joined: Jul 01, 2008
Posts: 507

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


When The Going Gets Tougher,The Tougher gets Going
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42919
    
  68
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

Joined: Jul 01, 2008
Posts: 507


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
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2718
    
    6

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


SCJP, SCWCD.
|Asking Good Questions|
Deepak Lal
Ranch Hand

Joined: Jul 01, 2008
Posts: 507

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

Joined: Jul 01, 2008
Posts: 507

Please help me to resolve this Tomcat Server Port problem....
Deepak Lal
Ranch Hand

Joined: Jul 01, 2008
Posts: 507

Please help me to resolve this Tomcat Server Port problem....

David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

-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

Joined: Jun 06, 2007
Posts: 2718
    
    6

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



PatienceIsAVirtue
Deepak Lal
Ranch Hand

Joined: Jul 01, 2008
Posts: 507

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

Joined: Mar 06, 2001
Posts: 13459

You should ask this in a separate thread
Deepak Lal
Ranch Hand

Joined: Jul 01, 2008
Posts: 507

Sorry David,
I don't know the rules of JavaRanch...Once again sorry,won't repeat the same mistake again.



--
Deepak Lal
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Port problem