This is a bit poor information about the issue, please provide more details of your app and when it hung up. Also the current start parameter and the logfiles might be helpful.
Why you use JBoss 4.0.5, any reason. I recommend to use the latest 4.3 or if possible 5.1 or later.