Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 89380 invoked from network); 2 May 2007 03:34:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 May 2007 03:34:16 -0000 Received: (qmail 88324 invoked by uid 500); 2 May 2007 03:34:22 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 88297 invoked by uid 500); 2 May 2007 03:34:22 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 88286 invoked by uid 99); 2 May 2007 03:34:22 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2007 20:34:22 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2007 20:34:14 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Hj5bG-0000pO-CG for users@activemq.apache.org; Tue, 01 May 2007 20:33:54 -0700 Message-ID: <10279665.post@talk.nabble.com> Date: Tue, 1 May 2007 20:33:54 -0700 (PDT) From: sparky2708 To: users@activemq.apache.org Subject: Re: Shutdown script doesn't seem to work in 4.1.1 In-Reply-To: <4637E922.3040908@exist.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: daa82@columbia.edu References: <10270719.post@talk.nabble.com> <4637E922.3040908@exist.com> X-Virus-Checked: Checked by ClamAV on apache.org Yes. Just running it out of the box. Adrian Co wrote: > > Is JMX enabled in the broker? > > sparky2708 wrote: >> I get the following exception when I run the shutdown script. Any ideas? >> : >> >> ACTIVEMQ_HOME: /home/teprod/apache-activemq-4.1.1 >> ACTIVEMQ_BASE: /home/teprod/apache-activemq-4.1.1 >> ERROR: java.lang.RuntimeException: Failed to execute stop task. Reason: >> java.io.IOException: Failed to retrieve RMIServer stub: >> javax.naming.NameNotFoundException: jmxrmi >> java.lang.RuntimeException: Failed to execute stop task. Reason: >> java.io.IOException: Failed to retrieve RMIServer stub: >> javax.naming.NameNotFoundException: jmxrmi >> at >> org.apache.activemq.console.command.ShutdownCommand.runTask(ShutdownCommand.java:90) >> at >> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:50) >> at >> org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:67) >> at >> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:50) >> at >> org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:46) >> 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:585) >> at org.apache.activemq.console.Main.runTaskClass(Main.java:202) >> at org.apache.activemq.console.Main.main(Main.java:91) >> ERROR: java.lang.Exception: java.io.IOException: Failed to retrieve >> RMIServer stub: javax.naming.NameNotFoundException: jmxrmi >> java.lang.Exception: java.io.IOException: Failed to retrieve RMIServer >> stub: >> javax.naming.NameNotFoundException: jmxrmi >> at >> org.apache.activemq.console.command.ShutdownCommand.runTask(ShutdownCommand.java:91) >> at >> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:50) >> at >> org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:67) >> at >> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:50) >> at >> org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:46) >> 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:585) >> at org.apache.activemq.console.Main.runTaskClass(Main.java:202) >> at org.apache.activemq.console.Main.main(Main.java:91) >> Caused by: java.io.IOException: Failed to retrieve RMIServer stub: >> javax.naming.NameNotFoundException: jmxrmi >> at >> javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:317) >> 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.createJmxConnector(MBeansObjectNameQueryFilter.java:149) >> at >> org.apache.activemq.console.filter.MBeansObjectNameQueryFilter.queryMBeans(MBeansObjectNameQueryFilter.java:106) >> at >> org.apache.activemq.console.filter.MBeansObjectNameQueryFilter.query(MBeansObjectNameQueryFilter.java:94) >> at >> org.apache.activemq.console.filter.AbstractQueryFilter.query(AbstractQueryFilter.java:44) >> at >> org.apache.activemq.console.util.JmxMBeansUtil.getAllBrokers(JmxMBeansUtil.java:31) >> at >> org.apache.activemq.console.command.ShutdownCommand.runTask(ShutdownCommand.java:52) >> ... 10 more >> Caused by: javax.naming.NameNotFoundException: jmxrmi >> at >> com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:95) >> at >> com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185) >> at javax.naming.InitialContext.lookup(InitialContext.java:351) >> at >> javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1807) >> at >> javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1777) >> at >> javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:259) >> ... 18 more >> >> > > > -- View this message in context: http://www.nabble.com/Shutdown-script-doesn%27t-seem-to-work-in-4.1.1-tf3675585s2354.html#a10279665 Sent from the ActiveMQ - User mailing list archive at Nabble.com.