Change jBoss 5 Default Port

This guide explains how to change the default port of jboss 5.x (which is 8080) to whatever port you want

  1. Open the server.xml file that corresponds to your deployment server
    i.e. vi <jboss-home>/server/default/deploy/jbossweb.sar/server.xml
  2. Find the line: <Connector protocol=”HTTP/1.1″ port=”8080″ address=”${jboss.bind.address}”
  3. Change port 8080 to whatever port you would like to use
  4. Restart jBoss