Hi everybody!
I use jboss-4.0.4.GA under Fedora 5. Firstly I run jboss using run.sh script and all was OK. I was able to start, stop and etc server.
Then I decided to run jboss as service and place file jboss_init_redhat.sh in /etc/init.d directory. Surely I changed this file and rename it to simply "jboss".
Then I run it by exec "jboss start" command and all was Ok again. BUT I cann't stop it now :( I get this error:
Exception in thread "main" javax.naming.NameNotFoundException: jmx not bound at org.jnp.server.NamingServer.getBinding(NamingServer.java:529) ...
You can always send an INT signal to the java process running the app server, this will cause it to shut down gracefully:
kill INT 9999
where 9999 is the java process id.