Setting default port number for Tomcat - Tomcat Views : 1001
Tagged in : Tomcat
0 0
Send mail
To change tomcat default port number from 8080 to other number use the following.

> Go to "D:\Program Files\Apache Group\Tomcat 5.0\conf"
> Open "server.xml"

> Search for the following line,

<Connector port="8080" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100" debug="0" connectionTimeout="20000" disableUploadTimeout="true" />



There set port="8080" to the port number you wish to run the Tomcat.
Restart Tomcat and run the file.

For eg,
if you set the port number to 9090 as,

<Connector port="9090" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100" debug="0" connectionTimeout="20000" disableUploadTimeout="true" />


Restart tomcat and run the file as,
localhost:9090/test/test.jsp.
By Ramya, On - 2008-09-01



    Login to add Comments .