This is "java.net.BindException: Address already in use"; you should fix this issue and check what other process is using this port. This error typically occurs if port is already in use by another process or another jboss instance or service running on the same machine.
Thanks for your answer. Actually I was looking for some kind of configuration in Jboss itself to stop the server than manually going and fixing the issue. Currently, the Jboss doesn't stop from going ahead , but rather goes ahead with some wrong configurations due to the unavailability of the port.
I hope I was able to convey what I exactly intended to say.
There is no such in built feature.
Possibly you can write a shell script to check for the ports status and then internally call the Jboss startup script in it.
Thanks Sujay, this would work I feel. Thanks for your answer.