I am using JBOSS 5 for my latest project. I was stuck when oracle instance was required in project because both JBOSS and oracle instance run on port 8080.
So i decided to change JBOSS port to 8776. Here are the steps i followed.
My JBOSS is installed in D:\jboss5
- Go to the D:\jboss5\server\default\deploy\jbossweb.sar folder
- Open the server.xml file inside that folder.
- Search for “<Connector protocol=”HTTP/1.1″ port=”8080″ address=”${jboss.bind.address}” connectionTimeout=”20000″ redirectPort=”8443″ />”
- Once you find this tag, change the port number 8080 to whatever you want. In my case i changed it to 8776.
- Restart JBOSS5.
Now the JBOSS runs on 8776 as defined by me.




























































4 Comments
Doesn’t work for me.
I had to change the file
…/jboss/jboss-5.0.0.GA/server/default/conf/bootstrap/bindings.xml
and there the property with name port:
9090
I did work for me.
Changing port in “ ”
did the tirck .
Thank you Devang for writing this, it worked for me. Cheers, Ben
To change port, you just only call: run -Djboss.service.binding.set=”ports-01″
Refer to this link for more detail: http://javatip4u.blogspot.com/2009/06/changing-jboss-5-port.html