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

Tomcat5.5

p hasini
Ranch Hand

Joined: Oct 24, 2009
Posts: 92
How to change the port no. in Tomcat 5.5

I already have one server on port 8080.

Tomcat by default listens on port 8080. I want to change it
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42952
    
  73
Check the conf/server.xml file; that's where the port is specified.
Parth Krishnan
Greenhorn

Joined: Apr 19, 2009
Posts: 6

Are you using any IDE such as MyEclipse?


cheers,
Parth - parthme@live.com
Parth Krishnan
Greenhorn

Joined: Apr 19, 2009
Posts: 6

1. Open the folder tomcat\conf on your computer

2. Now with a text editor you have to open and modify server.xml. Here you have to identify the following line (line 184) and you modify it so that changes from:

<Http10Connector port="8080"
secure="false"
maxThreads="100"
maxSpareThreads="50"
minSpareThreads="10" />

to:

<Http10Connector port="9090"
secure="false"
maxThreads="100"
maxSpareThreads="50"
minSpareThreads="10" />


3. Startup the web server and access it now using:http://localhost:9090/.......

It may be useful to you...
cool.....

p hasini
Ranch Hand

Joined: Oct 24, 2009
Posts: 92
ya . Thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat5.5