Thanks very much for the info. Unfortunately the second advice doesn't work for me...
Regards, Stefan Am 19.08.2011 um 13:08 schrieb Freeman Fang: > Hi, > > This is a known issue[1] for Apache Servicemix 4.3 and already get fixed, > you have two workaround so far > > 1. use > activemq:list --jmxlocal > instead which will use the local JMX server instead of a remote one. > > 2. change > <managementContext createConnector="false"/> > to > <managementContext createConnector="true"/> > > in etc/activemq-broker.xml > > > > You can get more details from [1] > > > [1]https://issues.apache.org/jira/browse/SMX4-784 > > Freeman > On 2011-8-19, at 下午7:00, Stefan Essl wrote: > >> Hi everybody, >> >> I just downloaded the Linux version of Servicemix 4.3.0 and tried out some >> commands from the console. Without any changes to any configurations so far, >> I get the following error on running "activemq:list": >> >> smx@root> activemq:list >> Connecting to JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi >> ERROR: java.lang.RuntimeException: Failed to execute list task. Reason: >> java.io.IOException: Failed to retrieve RMIServer stub: >> javax.naming.NameNotFoundException: jmxrmi >> java.lang.RuntimeException: Failed to execute list task. Reason: >> java.io.IOException: Failed to retrieve RMIServer stub: >> javax.naming.NameNotFoundException: jmxrmi >> at >> org.apache.activemq.console.command.ListCommand.runTask(ListCommand.java:53) >> at >> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) >> at >> org.apache.activemq.console.command.AbstractJmxCommand.execute(AbstractJmxCommand.java:316) >> at >> org.apache.activemq.karaf.commands.ActiveMQCommandSupport.doExecute(ActiveMQCommandSupport.java:46) >> at >> org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38) >> at >> org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35) >> at >> org.apache.felix.gogo.runtime.shell.CommandProxy.execute(CommandProxy.java:50) >> at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:229) >> at >> org.apache.felix.gogo.runtime.shell.Closure.executeStatement(Closure.java:162) >> at org.apache.felix.gogo.runtime.shell.Pipe.run(Pipe.java:101) >> at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:79) >> at >> org.apache.felix.gogo.runtime.shell.CommandSessionImpl.execute(CommandSessionImpl.java:71) >> at org.apache.karaf.shell.console.jline.Console.run(Console.java:170) >> at java.lang.Thread.run(Thread.java:662) >> Error executing command: java.io.IOException: Failed to retrieve RMIServer >> stub: javax.naming.NameNotFoundException: jmxrmi >> >> Do I have to install some extra components to get this to work or am I doing >> something wrong? >> >> Regards, >> Stefan > > --------------------------------------------- > Freeman Fang > > FuseSource > Email:[email protected] > Web: fusesource.com > Twitter: freemanfang > Blog: http://freemanfang.blogspot.com > > > > > > > > >
