This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat5.5

 
p hasini
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the conf/server.xml file; that's where the port is specified.
 
Parth Krishnan
Greenhorn
Posts: 6
Eclipse IDE Firefox Browser Windows Vista
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using any IDE such as MyEclipse?
 
Parth Krishnan
Greenhorn
Posts: 6
Eclipse IDE Firefox Browser Windows Vista
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya . Thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic