Changing JBoss Server's default http port

If you have installed jboss server in: C:\jboss-5.1.0\ then here's what you should do to change the default port (8080) to any port of your choice.

1.) Open the file, C:\jboss-5.1.0\server\default\conf\bindingservice.beans\META-INF\bindings-jboss-beans.xml
2.) In approximately line 280 change the port number as you desire:
<bean class="">
               <property name="serviceName">jboss.web:service=WebServer</property>
               <property name="port">8080</property>
               <property name="description">JBoss Web HTTP connector socket; also drives the values for the HTTPS and AJP sockets</property>

                   Inject a XSLT transform configuration (see below) that describes
                   how to transform server.xml
                   If the binding value request doesn't require an XSL Transform, this config
                   will be ignored.
               <property name="serviceBindingValueSourceConfig"><inject bean="JBossWebConnectorXSLTConfig"/></property>
Changing JBoss Server's default http port Changing JBoss Server's default http port Reviewed by Edward Legaspi on Monday, January 10, 2011 Rating: 5

No comments:

Powered by Blogger.