I need to host and run tomcat without using an arbitrary port. How do I do it.
migrated from stackoverflow.com Oct 2 '12 at 22:26
This question came from our site for professional and enthusiast programmers.
You have not specified your Linux version, Tomcat version and whether or not you are using the "system" Tomcat [ the version that installs via the package manager ].
I will answer on the assumption that you are on a recent edition of Ubuntu and using a Tomcat 6 that has been installed via the package manager.
If your system differs significantly from my assumed system, comment and I may be able to adapt this answer.
1) Locate server.xml in
2) Find the line similar to this -
3) Restart tomcat.