aspose file tools*
The moose likes JBoss/WildFly and the fly likes How to run Jboss on port other than 8080 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "How to run Jboss on port other than 8080" Watch "How to run Jboss on port other than 8080" New topic
Author

How to run Jboss on port other than 8080

Saurabh Vyas
Ranch Hand

Joined: Sep 02, 2003
Posts: 72
Hi Norman and Sam, first I congratulate on your new book.
I have a two questions in JBoss and I think here only i should ask question to participate in "JavaRanch Book Promotion".

Qs1 : How to configure Jboss to run on some other port (except 8080) so that in URL to access our web application we need not mention the port number, also we have not to use port 80 ( which helps in achieving this functionality ). So basically my question is how to set Port redirection in Jboss ?

Qs2 : Can we run more than one instance of Jboss on same machine, like we can do for tomcat by setting Catalina home and catalina base ?

Regards
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

To change the HTTP connector for Tomcat (the web container deployed with JBoss) update the value in %JBOSS_HOME%/server/[server_name]/deploy/jbossweb-tomcat41.sar/META-INF/jboss-service.xml.

Yes you can run as many instances of JBoss as you like, so long as there are no port conflicts. The easieast way to do that is to use the ServiceBindingManager MBean. Have a look at the sample-bindings.xml file which comes with the JBoss examples.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
norman richards
Author
Ranch Hand

Joined: Jul 21, 2003
Posts: 367
Tomcat 4.1? You have a really old JBoss. Look for the server.xml file in the jbossweb-tomcat50.sar or jbossweb-tomcat55.sar directory. (depending on the version you are using)

In addition to the binding manager, you can also use "run -b <ip number>" to bind only to one address, allowing you to run multiple JBoss instances easily.
Dave Salter
Ranch Hand

Joined: Jul 20, 2005
Posts: 293

On the latest release of JBoss (4.0.2), you need to edit the server.xml file located in $jboss_home/server/default/deploy/jbossweb-tomcat55.sar (assuming you are using the default configuration.

In that file, you need to change the port attribute in the Connector entry. e.g.

<Server>
<Service name="jboss.web"
className="org.jboss.web.tomcat.tc5.StandardService">

<!-- Change this value to the port you want to use. -->
<Connector port="8080"
...
Saurabh Vyas
Ranch Hand

Joined: Sep 02, 2003
Posts: 72
Thank you all for your response.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to run Jboss on port other than 8080