File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes tomcat command line options Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "tomcat command line options" Watch "tomcat command line options" New topic
Author

tomcat command line options

shobhit garg
Ranch Hand

Joined: Mar 07, 2004
Posts: 42
Hi,

Is there any command line option using which we can set the tomcat server
port to run on some other port instead of 8080
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

No.
This setting is configured in your {tomcat install}/conf/server.xml file.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Rama Krishna Ghanta
Ranch Hand

Joined: Nov 20, 2006
Posts: 59
The only way to change the default port 8080 is to modify the below code in {Tomcat root directry}/conf/server.xml.



Change the Connector port to "80" instead of "8080"


Ram...
Neerav Narielwala
Ranch Hand

Joined: Dec 08, 2006
Posts: 106
Open server.xml in %TOMCAT_HOME%\conf directory and edit the <Connector> element.
For SimpleTcpConnector, change the sub-element "port" value to 80. Yes, You got it!


<a href="http://www.java-tips.org/java-tutorials/tutorials/" target="_blank" rel="nofollow">Java Tutorials</a> | <a href="http://www.planet-java.org" target="_blank" rel="nofollow">Java Weblog</a> | <a href="http://computer-engineering.science-tips.org" target="_blank" rel="nofollow">Computing Articles</a>
 
 
subject: tomcat command line options