1 Reply Latest reply on Apr 17, 2002 3:19 AM by Jeroen Gremmen

    How to change Tomcat port 8080

    Peter Len Newbie

      I am using JBoss 2.4.4 / Tomcat 4.0.1. I wanted to change the default port that Tomcat uses (8080) to something else because there is another appliaction that is using that port. I changed the reference to 8080 in the JBOSS_HOME\catalina\conf\server.xml file to something else but that didn't seem to work.

      I found this out because I turned off the other application service (the one that also uses port 8080) and when I started JBoss the log file listed the following:

      21:59:31,385,EmbeddedCatalinaServiceSX] Setting catalina.home to: C:\JBoss-244_Tomcat-401\catalina
      [21:59:31,495,EmbeddedCatalinaServiceSX] Building Http engine and connector
      [21:59:31,651,Default] Apache Tomcat/4.0.1
      [21:59:31,682,EmbeddedCatalinaServiceSX] HttpConnector Opening server socket on all host IP addresses
      [21:59:31,682,EmbeddedCatalinaServiceSX] HttpConnector[8080] Starting background thread
      [21:59:31,776,EmbeddedCatalinaServiceSX] HttpProcessor[8080][0] Starting background ......

      I went to the browser and went to http://localhost:8080/jboss and got the example so I know that Tomcat is indeed using port 8080 even thought I modified it in the server.xml file.

      Is there some other file that I need to modify?

      Thanks - Peter Len