For tomcat, open the server.xml in the TOMCAT_DIR\conf dir. Search for CoyoteConnector and change the HTTP port.
JBoss specific services are configured in the JBOSS_DIST\server\<conf-set>\conf dir. For example, the naming service (default 1099) is configured in the jboss-service.xml. You can change that port. I'm not very sure if some ports are referenced from other config files.
Note: <conf-set> is one of you server configurations. JBoss comes with all, default and minimal.
First, thanks to mlindhout for attempting to help me. Unfortunately, your information concerning Tomcat is inaccurate. I attempted changing the entry in server.xml as suggested, but Jboss continued to use port 8080.
After looking over other (inaccurate) information about this subject in this forum, and searching through the Jboss distribution, I discovered a file called tomcat41-service.xml in the deploy directory under server/default. In this file is an entry called "Connector" which points to port 8080. Changing the port in this entry appears to cause Tomcat to change ports when Jboss is run.
I do, however, have one more problem: though Jboss now receives HTTP requests on a different port, the shutdown.sh script still seems to think Jboss is using port 8080. Does anyone know how to update the shutdown script so that it uses the correct port?
Thanks in advance for any advice.
I tried your suggestion of modifying tomcat41-service.xml to port 81. This works, thanx.
I stopped jboss as follows: shutdown localhost 81.
Your shutdown sequence works for me, too.
How do you change the default port for Jetty ?
I'm trying to use Oracle 9i with JBoss. I got this error message when I started JBoss:
"2002-11-22 14:13:16,506 ERROR [org.jboss.jetty.JettyService] multiple exceptions...
2002-11-22 14:13:16,506 ERROR [org.jboss.jetty.JettyService] exception
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)