-
1. Re: Unable to shutdown a minimal "all configuration" Jboss server
wolfgangknauf Aug 10, 2010 10:41 AM (in response to melgosa)Hi,
which JBoss version?
Take a look at this document:
https://community.jboss.org/thread/152911
The shutdown command changed in 6.0M3. Now, it is: shutdown.bat -s service:jmx:rmi:///jndi/rmi://localhost:1090/jmxrmi
For previous versions, it is: shutdown.bat -s jnp://localhost:1099
Hope this helps
Wolfgang
-
2. Re: Unable to shutdown a minimal "all configuration" Jboss server
melgosa Aug 11, 2010 6:52 AM (in response to wolfgangknauf)Well i must use shutdown.sh for linux, anyway my result is:
[root@maq01 bin]# ./shutdown.sh -s service:jmx:rmi:///jndi/rmi://localhost:1090/jmxrmi
Exception in thread "main" java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused]
[root@maq01 bin]# ./shutdown.sh -s service:jmx:rmi:///jndi/rmi://localhost:8080/jmxrmi
Exception in thread "main" java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused][root@maq01 bin]# ./shutdown.sh -s service:jmx:rmi:///jndi/rmi://xxx.xxx.xxx.xxx:8080/jmxrmi
Exception in thread "main" java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused]Not much new information in the link, but thank you anyway.
Having used run.sh -c all -b x.x.x.x:8080 to start it. Any more ideas please?
pd:6.0 M3 version
EDIT: problem solved, there was a problem with a service due to an error in the starting script, also 'localhost' is not valid in the shutdown command, but ip works, and port is 1090 default and independent of the port which jboss is configured to work through. Thank you.