File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Change Tomcat port with JBoss 4.0.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Change Tomcat port with JBoss 4.0.1" Watch "Change Tomcat port with JBoss 4.0.1" New topic
Author

Change Tomcat port with JBoss 4.0.1

Paulo Murphy de Freitas
Greenhorn

Joined: Sep 16, 2004
Posts: 3
Hi,

I've just "installed" JBoss on a linux box and am confused about changing the port Tomcat runs on. There is already something running on port 8080 and I can't seem to figure out or google how to change the port over to something else. I managed to change the port for the Naming service from 1099 to 1100 easily enough.

Do I have to edit server/default/deploy/jboss-ws4ee.sar/META-INF/jboss-service.xml or is this done somewhere else?

Thanks in advance
Paulo Murphy de Freitas
Greenhorn

Joined: Sep 16, 2004
Posts: 3
I've just found out how to solve this so I'll reply to my own post

The solution can be found at http://docs.jboss.org/jbossas/jboss4guide/r1/html/ch9.chapt.html#d0e21935

Need to edit the server/default/deploy/jbossweb-tomcat50.sar/server.xml file under your JBoss installation directory and change the <Connector port="8080" ... to whatever port you want Tomcat to run on, remembering not to conflict with other ports used by the JBoss bundle or any services running on the machine.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Change Tomcat port with JBoss 4.0.1