I'm getting this:
[EMAIL PROTECTED]:~/apache-activemq-5.1.0/bin> ./activemq-admin stop
ACTIVEMQ_HOME: /home/andrew/apache-activemq-5.1.0
ACTIVEMQ_BASE: /home/andrew/apache-activemq-5.1.0
ERROR: java.lang.RuntimeException: Failed to execute stop task. Reason:
java.io.IOException: Failed to retrieve RMIServer stub:
javax.naming.ServiceUnavailable
Exception [Root exception is java.rmi.ConnectException: Connection refused
to host: localhost; nested exception is:
java.net.ConnectException: Connection refused]
java.lang.RuntimeException: Failed to execute stop task. Reason:
java.io.IOException: Failed to retrieve RMIServer stub:
javax.naming.ServiceUnavailableExcepti
on [Root exception is java.rmi.ConnectException: Connection refused to host:
localhost; nested exception is:
java.net.ConnectException: Connection refused]
at
org.apache.activemq.console.command.ShutdownCommand.runTask(ShutdownCommand.
java:104)
at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.
java:57)
at
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:1
29)
at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.
java:57)
at
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.activemq.console.Main.runTaskClass(Main.java:222)
at org.apache.activemq.console.Main.main(Main.java:106)
ERROR: java.lang.Exception: java.io.IOException: Failed to retrieve
RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is
java.rmi.Connec
tException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused]
java.lang.Exception: java.io.IOException: Failed to retrieve RMIServer stub:
javax.naming.ServiceUnavailableException [Root exception is
java.rmi.ConnectExcept
ion: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused]
at
org.apache.activemq.console.command.ShutdownCommand.runTask(ShutdownCommand.
java:105)
at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.
java:57)
at
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:1
29)
at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.
java:57)
at
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.activemq.console.Main.runTaskClass(Main.java:222)
at org.apache.activemq.console.Main.main(Main.java:106)
Caused by: java.io.IOException: Failed to retrieve RMIServer stub:
javax.naming.ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Conne
ction refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused]
at
javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:323)
at
javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java
:248)
at
javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java
:207)
at
org.apache.activemq.console.filter.MBeansObjectNameQueryFilter.createJmxConn
ector(MBeansObjectNameQueryFilter.java:162)
at
org.apache.activemq.console.filter.MBeansObjectNameQueryFilter.queryMBeans(M
BeansObjectNameQueryFilter.java:114)
at
org.apache.activemq.console.filter.MBeansObjectNameQueryFilter.query(MBeansO
bjectNameQueryFilter.java:101)
at
org.apache.activemq.console.filter.AbstractQueryFilter.query(AbstractQueryFi
lter.java:43)
at
org.apache.activemq.console.util.JmxMBeansUtil.getAllBrokers(JmxMBeansUtil.j
ava:44)
at
org.apache.activemq.console.command.ShutdownCommand.runTask(ShutdownCommand.
java:68)
... 10 more
Caused by: javax.naming.ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: localhost; nested
exception is:
java.net.ConnectException: Connection refused]
at
com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101)
at
com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185
)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at
javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java
:1871)
at
javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:184
1)
at
javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:257)
... 18 more
Caused by: java.rmi.ConnectException: Connection refused to host: localhost;
nested exception is:
java.net.ConnectException: Connection refused
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
at
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
at
sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at
com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
... 23 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:180)
at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketF
actory.java:22)
at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketF
actory.java:128)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
... 28 more
[EMAIL PROTECTED]:~/apache-activemq-5.1.0/bin>