Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

To change JBoss 6.1.0 port

Tags:

jboss6.x

I'm trying to start JBoss 6.1.0 with 8080 port number. but Oracle RDBMS is running on 8080 port. So i got java.bind error. So i tried to change Jboss AS port to 8181 in \server\all\deploy\jbossweb.sar\server.xml.

But it doesn't make sense. Still i got same error.

Thank you

like image 574
Bekhbayar Avatar asked Feb 14 '12 07:02

Bekhbayar


2 Answers

For JBoss 6.1, you can change the port number from file standalone.xml in \JBOSS_HOME\jboss-eap-6.1\standalone\configuration:

<socket-binding name="http" port="8080"/>
like image 120
Hary Avatar answered Feb 28 '23 02:02

Hary


use parameter jboss.service.binding.set during startup

$JBOSS_HOME/bin/run.sh -Djboss.service.binding.set=ports-01

ports-01 increases all ports by 100 i.e. 8180 for http, 8543 for https and so on

ports-02 increases all ports by 200 i.e. 8280 for http, 8643 fir https and so on

so on..

like image 42
Vikas Gujjar Avatar answered Feb 28 '23 01:02

Vikas Gujjar