Perhaps this thread might help. go.sh seems to have caused people a lot of grief. In the thread, I've attached a serviceable init.d script. You'll probably need to change it for detection of the process (I'm checking for an IBM JVM). The script is designed for 3.2.x.
http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t= it helps.
Thanks ... I took a look at your script, scratched my head a bit (it ain't Java ).
I did finally get everything working by slightly modifying the jboss.sh and go.sh scripts found at http://www.gogis.nl/en/public_documentation/jboss/index.html