HI i have Jboss 5.1 GA running on Linux . I have changed the deafult http port to my custom port (lets say 8100) and i havent changed other ports in server.xml file.

When i start my jboss instance i am passing the -Djboss.service.binding.set=ports-01 as a parameter and i expect Jboss instance to add offset 100 to all the ports that are in server.xml . This is not happening with my jboss server here its adding the offset 100 to all other ports like rmi,webservice etc but not to HTTP , AJP and SSL port. It is still taking the ports from server.xml ?

is there a way that i can select my range of ports and then i can add Offset to that range for each instance that i am running on my Machine.

How can i give my own HTTP,AJP and Https port if needed ? or How can i set a range of ports for my Jboss instance ? Lets say i want my Jboss instance to use ports starting from 15000 ? and the second instance i can have offset , but for which port the Jboss will add offset ?

Study the server/default/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml file, that should answer your questions. That file contains all port numbers used by JBoss AS - you can change the numbers to what you want. You can also change the offsets to what you want for the various binding values.

BTW, note that some of the ports are set via XSL transforms (lok at the very end of the file), which is why your original attempt to set server.xml didn't work - it broke the transforms.

I reverted back all my changes in server.xml and i am using default server.xml which is part of "all" configuration .

I have changed all the ports in bindings file to my custom ports and when i started the jboss instance ,it throwed an binding exception error with a 4457 port part of remoting-bisocket-service.xml. There is an other jboss instance running already using this port.

so i went and modified the port t0 my own custom port and i started the jboss instance again and now it throwed a different error

3) The JBossXBException suggests that some of the changes that you did to bindingservice.beans might be incorrect. We'll need more information on what exactly you changed and what the file looks like now with those changes.

I agree with your point 3 . I have cleaned up everything and started everythign from scratch by following the points that was mentioned earlier in the post and now the Jboss is up and running with out any exceptions. . The changes that i have done might be in correct .