a JBoss windows
Do you mean "JBoss AS running as a Windows service"? Or just "JBoss AS running on Windows"? Or do you mean something else entirely?
See if this discussion helps:
Oh, I am sorry. I wrote a little wrong here. I meant JBoss as a windows service. Has also enabled the -Xrs option, but it still stops.
See if any of this helps:
Especially log at the shutdownlogs wiki entry mentioned to determine what caused the shutdown. Be aware that JBoss AS never decides to go away on its own - if it shuts down it is because of an outside event. Your assignment is to determine what that outside event was and then determine how to avoid or block that event.