From activemq-dev-return-2545-apmail-geronimo-activemq-dev-archive=geronimo.apache.org@geronimo.apache.org Thu Aug 17 14:25:21 2006 Return-Path: Delivered-To: apmail-geronimo-activemq-dev-archive@www.apache.org Received: (qmail 46517 invoked from network); 17 Aug 2006 14:25:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Aug 2006 14:25:21 -0000 Received: (qmail 76549 invoked by uid 500); 17 Aug 2006 14:25:21 -0000 Delivered-To: apmail-geronimo-activemq-dev-archive@geronimo.apache.org Received: (qmail 76526 invoked by uid 500); 17 Aug 2006 14:25:21 -0000 Mailing-List: contact activemq-dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-dev@geronimo.apache.org Delivered-To: mailing list activemq-dev@geronimo.apache.org Received: (qmail 76517 invoked by uid 99); 17 Aug 2006 14:25:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Aug 2006 07:25:21 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Aug 2006 07:25:20 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 45A3B7142B7 for ; Thu, 17 Aug 2006 14:22:23 +0000 (GMT) Message-ID: <12191367.1155824543282.JavaMail.jira@brutus> Date: Thu, 17 Aug 2006 07:22:23 -0700 (PDT) From: "Douglas A. Seifert (JIRA)" To: activemq-dev@geronimo.apache.org Subject: [jira] Commented: (AMQ-867) JMX Management Console Not Working As Documented In-Reply-To: <26133904.1154970863354.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ https://issues.apache.org/activemq/browse/AMQ-867?page=comments#action_36799 ] Douglas A. Seifert commented on AMQ-867: ---------------------------------------- Willing to close this as the workaround works. The shutdown (and others) script works as well, but if you change the JMX port in the activemq xml configuration file, you need to use the --jmxurl service:jmx:rmi:///jndi/rmi://localhost:NEWPORT/jmxrmi arguments to all scripts. Would be nice if the scripts could figure this out from the xml configuration. > JMX Management Console Not Working As Documented > ------------------------------------------------ > > Key: AMQ-867 > URL: https://issues.apache.org/activemq/browse/AMQ-867 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 4.0.1, 4.0.2 > Environment: Linux nuk 2.6.15-23-amd64-generic #1 SMP PREEMPT Tue May 23 13:45:47 UTC 2006 x86_64 GNU/Linux > Reporter: Douglas A. Seifert > > Starting in 4.0.1 and continuing in a snapshot 4.0.2 release, the ActiveMQ JMX management console is not working as advertised. In version 4.0, I would see the following message logged to the console when starting activemq: > INFO ManagementContext - JMX consoles can connect to service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi > In Version 4.0.1 and higher, I no longer see this message. > When trying to connect to the broker using the jconsole program, in versions 4.0.1 and higher, the following command does not work (get "Connection failed" message). > jconsole service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi > However, in 4.0, it does work. > With 4.0.1 and higher, I am able to execute jconsole with no arguments and pick the activemq jvm from the dialog that pops up and access the managment mbeans just fine. > A symptom of this problem in 4.0.1 and higher is that none of the command line tools in the bin directory work. Here is sample output: > doug@nuk:~/tools/activemq/incubator-activemq-4.0.2/bin$ ./shutdown > ACTIVEMQ_HOME: /home/doug/tools/activemq/incubator-activemq-4.0.2 > ERROR: java.lang.RuntimeException: Failed to execute stop task. Reason: 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] > ERROR: java.lang.Exception: 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] > With 4.0, all command line tools work as expected. > Not sure what is going on here, but something changed in versions 4.0.1 and above. > One last note: in 4.0.1 and higher, I uncommented the managementContext tag in the activemq.xml file, but that had no effect. The problem remained as described here. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira