File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

changing Tomcat port

 
Eric Bic
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
eric
 
Chris Stehno
Ranch Hand
Posts: 180
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic