It's not a secret anymore!*
The moose likes Tomcat and the fly likes changing Tomcat port Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "changing Tomcat port" Watch "changing Tomcat port" New topic

changing Tomcat port

Eric Bic

Joined: Apr 12, 2004
Posts: 7
hi could anyone tell me how i change the port for tomcat, i set it to 8080 when i installed it but i want to change it, im using the tomcat provided with java web service developer pack 1.3
thanks for your help
Chris Stehno
Ranch Hand

Joined: Feb 26, 2001
Posts: 180
Its actually pretty simple. Open the server.xml file for the Tomcat you want to change (TOMCAT_HOME/conf/server.xml) and find the CoyoteConnector Connector element. There is an attribute of that element called port. In your case it should currently be set to 8080... just change it to the new port number you want. Save the file and restart your server.
Note: I am assuming that you are using Tomcat stand-alone (no Apache front-end).

- Chris Stehno, SCPJ
Don't get me started about those stupid light bulbs.
subject: changing Tomcat port
Similar Threads
changing port number of tomcat
my first jsp can not display(http status 500)
Query about 'Port' Number?? Address already in use: JVM_Bind:8080