This works for JBOSS 4.0.5.GA! hopefully, it will work on some other versions. The important thing is to change the port number for the services you are running in your application – http, rmi, jndi, Webservice e.t.c. You will find these in the following xml files -All xml are in the server directory JBOSS. Leave …