Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 53161 invoked from network); 6 May 2010 20:46:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 May 2010 20:46:11 -0000 Received: (qmail 86939 invoked by uid 500); 6 May 2010 20:46:10 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 86916 invoked by uid 500); 6 May 2010 20:46:10 -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 86908 invoked by uid 99); 6 May 2010 20:46:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 May 2010 20:46:10 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=FORGED_HOTMAIL_RCVD2,FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 May 2010 20:46:04 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1OA7x0-0004dt-WF for users@activemq.apache.org; Thu, 06 May 2010 13:45:43 -0700 Message-ID: <28479319.post@talk.nabble.com> Date: Thu, 6 May 2010 13:45:42 -0700 (PDT) From: "gkiran.ch" To: users@activemq.apache.org Subject: Re: Unable to start Active MQ Broker without LAN Connection. In-Reply-To: <7b3355cb0901161217u2caeb730s74a8707c8e861517@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: gkiran.ch@hotmail.com References: <21499317.post@talk.nabble.com> <7b3355cb0901161217u2caeb730s74a8707c8e861517@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org bsnyder wrote: > > On Fri, Jan 16, 2009 at 6:29 AM, sailaja p wrote: >> >> Hi, >> >> I am begginer to the Active MQ and trying understand the features of >> Active >> MQ. I have downloaded the Active MQ 5.1.0. When I tried to start the >> Messaging Broker without LAN Connection I am getting the below >> exceptions. >> But if I tried to start the Broker with LAN connection, I am able to >> start >> the Broker succesfully. >> >> I even tried the above scenario by commenting all network connectors in >> the >> broker configuration file (activemq.xml). >> >> Is this a limitation or am I doing something wrong? Kindly help me. > > The stack trace indicates that IP multicast must not be enabled on > your machine. To work around this, edit the conf/activemq.xml and: > > 1) Comment out the default-nc networkConnector. This networkConnector > uses multicast to automatically discover other ActiveMQ brokers. > > 2) Remove the discoveryUri attribute from the openwire transportConnector. > > After making these changes, ActiveMQ won't use any IP multicast and > you shouldn't encounter the exception any longer. > > Bruce > -- > perl -e 'print > unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E );' > > Apache ActiveMQ - http://activemq.org/ > Apache Camel - http://activemq.org/camel/ > Apache ServiceMix - http://servicemix.org/ > > Blog: http://bruceblog.org/ > > -------------------------------------------------------------------------------------------------- Hi when i try to start activemq # sh activemq & i get some error but i am not sure about the error which i am getting. Can some one please point me into right directory where am i doing mistake or what i need to change in the configuration file. Caused by: java.net.UnknownHostException: test1: test1 at java.net.InetAddress.getLocalHost(InetAddress.java:1354) at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:133) ... 42 more INFO BrokerService - ActiveMQ Message Broker (192.168.86.36, null) is shutting down INFO NetworkConnector - Network Connector default-nc Stopped INFO TransportConnector - Connector openwire Stopped INFO TransportConnector - Connector ssl Stopped INFO TransportConnector - Connector stomp Stopped INFO TransportConnector - Connector xmpp Stopped INFO BrokerService - ActiveMQ JMS Message Broker (192.168.86.36, null) stopped ERROR: java.lang.RuntimeException: Failed to execute start task. Reason: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class path resource [activemq.xml]: Invocation of init method failed; nested exception is java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://192.168.86.36:61616 due to: java.net.UnknownHostException: test1: test1 java.lang.RuntimeException: Failed to execute start task. Reason: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class path resource [activemq.xml]: Invocation of init method failed; nested exception is java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://192.168.86.36:61616 due to: java.net.UnknownHostException: test1: test1 at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:98) at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:129) 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:225) at org.apache.activemq.console.Main.main(Main.java:106) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class path resource [activemq.xml]: Invocation of init method failed; nested exception is java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://192.168.86.36:61616 due to: java.net.UnknownHostException: test1: test1 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381) at org.apache.xbean.spring.context.ResourceXmlApplicationContext.(ResourceXmlApplicationContext.java:64) at org.apache.xbean.spring.context.ResourceXmlApplicationContext.(ResourceXmlApplicationContext.java:52) at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:96) at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:52) at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71) at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54) at org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:115) at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:74) ... 10 more Caused by: java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://192.168.86.36:61616 due to: java.net.UnknownHostException: test1: test1 at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27) at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1434) at org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:1893) at org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:1844) at org.apache.activemq.broker.BrokerService.start(BrokerService.java:480) at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:52) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1368) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334) ... 30 more Caused by: java.io.IOException: Failed to bind to server socket: tcp://192.168.86.36:61616 due to: java.net.UnknownHostException: test1: test1 at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:33) at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:141) at org.apache.activemq.transport.tcp.TcpTransportFactory.doBind(TcpTransportFactory.java:60) at org.apache.activemq.transport.TransportFactory.bind(TransportFactory.java:131) at org.apache.activemq.broker.TransportConnector.createTransportServer(TransportConnector.java:293) at org.apache.activemq.broker.TransportConnector.getServer(TransportConnector.java:135) at org.apache.activemq.broker.TransportConnector.asManagedConnector(TransportConnector.java:98) at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1428) ... 36 more Caused by: java.net.UnknownHostException: test1: test1 at java.net.InetAddress.getLocalHost(InetAddress.java:1354) at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:133) ... 42 more ERROR: java.lang.Exception: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class path resource [activemq.xml]: Invocation of init method failed; nested exception is java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://192.168.86.36:61616 due to: java.net.UnknownHostException: test1: test1 java.lang.Exception: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class path resource [activemq.xml]: Invocation of init method failed; nested exception is java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://192.168.86.36:61616 due to: java.net.UnknownHostException: test1: test1 at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:99) at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:129) 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:225) at org.apache.activemq.console.Main.main(Main.java:106) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class path resource [activemq.xml]: Invocation of init method failed; nested exception is java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://192.168.86.36:61616 due to: java.net.UnknownHostException: test1: test1 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381) at org.apache.xbean.spring.context.ResourceXmlApplicationContext.(ResourceXmlApplicationContext.java:64) at org.apache.xbean.spring.context.ResourceXmlApplicationContext.(ResourceXmlApplicationContext.java:52) at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:96) at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:52) at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71) at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54) at org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:115) at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:74) ... 10 more Caused by: java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://192.168.86.36:61616 due to: java.net.UnknownHostException: test1: test1 at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27) at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1434) at org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:1893) at org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:1844) at org.apache.activemq.broker.BrokerService.start(BrokerService.java:480) at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:52) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1368) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334) ... 30 more Caused by: java.io.IOException: Failed to bind to server socket: tcp://192.168.86.36:61616 due to: java.net.UnknownHostException: test1: test1 at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:33) at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:141) at org.apache.activemq.transport.tcp.TcpTransportFactory.doBind(TcpTransportFactory.java:60) at org.apache.activemq.transport.TransportFactory.bind(TransportFactory.java:131) at org.apache.activemq.broker.TransportConnector.createTransportServer(TransportConnector.java:293) at org.apache.activemq.broker.TransportConnector.getServer(TransportConnector.java:135) at org.apache.activemq.broker.TransportConnector.asManagedConnector(TransportConnector.java:98) at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1428) ... 36 more Caused by: java.net.UnknownHostException: test1: test1 at java.net.InetAddress.getLocalHost(InetAddress.java:1354) at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:133) ... 42 more [1]+ Done ./activemq -- View this message in context: http://old.nabble.com/Unable-to-start-Active-MQ-Broker-without-LAN-Connection.-tp21499317p28479319.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.