jboss 5 changing default port

风流意气都作罢 提交于 2019-12-03 06:08:53

Can you try changing in ${JBOSS_HOME}/server/default/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml

GAURAV KUMAR GUPTA

${JBOSS_HOME}\server\default\deploy\jbossweb.sar\server.xml

For example, locate in the path:
D:\jboss-5.0.0.CR2-jdk6\jboss-5.0.0.CR2\server\default\deploy\jbossweb.sar,

search for the section:

<Connector protocol="HTTP/1.1" port="8080" address="${jboss.bind.address}" 
       connectionTimeout="20000" redirectPort="8443" />

Then, change the port number to the one you choose, for example: from: "8080" to "8090" as follows:

<Connector protocol="HTTP/1.1" port="8090" address="${jboss.bind.address}" 
       connectionTimeout="20000" redirectPort="8443" />

I hope this would help you.

This works on jboss-5.1.0.GA : Edit the file ${JBOSS_HOME}/server/default/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml as follows -> Change ${jboss.service.binding.set:ports-default} to ${jboss.service.binding.set:ports-01}

This will change all defalt to default+100 port. HTTP - > 8180 and so on.

egarcia

It´s posible configure the ports as explained by peers in the next two files:

${JBOSS_HOME}/server/default/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml

${JBOSS_HOME}/server/default/deploy/jboss-web.deployer/server.xml

When the two configurations coexist Jboss works for the highest port, for example:

jbossweb.sar

Connector protocol="HTTP/1.1" port="8980" address="${jboss.bind.address}" 
       connectionTimeout="20000" redirectPort="8443" 

bindings-jboss-beans.xml

*${jboss.service.binding.set:ports-01}*

Jboss will run in port 8980

another part could be

Blockquote

D:\jboss-4.2.3.GA\server\default\deploy\jboss-web.deployer\server.xml

Blockquote

There

   *<Connector port=**"9090"** address="${jboss.bind.address}"    
     maxThreads="250" maxHttpHeaderSize="8192"
     emptySessionPath="true" protocol="HTTP/1.1"
     enableLookups="false" redirectPort="8443" acceptCount="100"
     connectionTimeout="20000" disableUploadTimeout="true" />*

change the port above

Just change the port number in the file

jboss-5.0.0.GA\server\default\deploy\jbossweb.sar\server.xml

  <Connector protocol="HTTP/1.1" port="7070" address="${jboss.bind.address}" 
           connectionTimeout="20000" redirectPort="8443" />

In the above i have changed to 7070.

Change the port number in the file ${JBOSS_HOME}/server/default/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml. For example to 6060

  <Connector protocol="HTTP/1.1" port="6060" address="${jboss.bind.address}" 
           connectionTimeout="20000" redirectPort="8443" />

If for any reason dont works also change this another too. To the same port.

jboss-5.0.0.GA\server\default\deploy\jbossweb.sar\server.xml

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!