• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

changing Tomcat port

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
reply
    Bookmark Topic Watch Topic
  • New Topic