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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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
Marshal

Joined: Mar 22, 2005
Posts: 39576
    
  27
Check the conf/server.xml file; that's where the port is specified.


Ping & DNS - updated with new look and Ping home screen widget
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
 
Similar Threads
Problems with port 8080
Server port number
java.net.BindException: Address already in use: JVM_Bind:8080
my first jsp can not display(http status 500)
How to change default port of Apache Tomcat?