Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 89033 invoked from network); 10 Apr 2010 19:32:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Apr 2010 19:32:06 -0000 Received: (qmail 89218 invoked by uid 500); 10 Apr 2010 19:32:06 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 89173 invoked by uid 500); 10 Apr 2010 19:32:05 -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 89165 invoked by uid 99); 10 Apr 2010 19:32:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Apr 2010 19:32:05 +0000 X-ASF-Spam-Status: No, hits=1.0 required=10.0 tests=FORGED_YAHOO_RCVD,FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.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; Sat, 10 Apr 2010 19:32:00 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1O0gP5-0004ZO-HU for users@activemq.apache.org; Sat, 10 Apr 2010 12:31:39 -0700 Message-ID: <28204195.post@talk.nabble.com> Date: Sat, 10 Apr 2010 12:31:39 -0700 (PDT) From: jadeite100 To: users@activemq.apache.org Subject: chapter 2 of Manning Mq In Action MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: jadeite100@yahoo.com Hi: I am using windows 2000 server, and apache-activemq-530. I tried to run the activemq in windows with the following command: %ACTIVEMQ_HOME%/bin/activemq xbean:C:/ActiveMq-example-src/src/main/resources/org/apache/activemq/book/ch2/activemq.xml It gives me the following error. It seems not to like this xbean parameter? Here are the error message: C:\ActiveMq-example-src>%ACTIVEMQ_HOME%/bin/activemq xbean;src/main/resources/org/apache/activemq/book/ch2/activemq.xml Java Runtime: Sun Microsystems Inc. 1.6.0_17 C:\Java\jdk16_17\jre Heap sizes: current=5056k free=4451k max=520256k JVM args: -Dcom.sun.management.jmxremote -Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.proper ties -Dactivemq.classpath=C:\apache-activemq-530/conf; -Dactivemq.home=C:\apache-activemq-530 -Dactivemq.base=C:\apache-activemq-530 ACTIVEMQ_HOME: C:\apache-activemq-530 ACTIVEMQ_BASE: C:\apache-activemq-530 Loading message broker from: xbean;src/main/resources/org/apache/activemq/book/ch2/activemq.xml ERROR: java.lang.RuntimeException: Failed to execute start task. Reason: java.lang.IllegalArgumentException: Invalid broker URI, no scheme specified: xbean;src/main/resources/org/apache/activemq/book/ch2/activemq.xml java.lang.RuntimeException: Failed to execute start task. Reason: java.lang.IllegalArgumentException: Invalid broker URI, no scheme specified: xbean;s rc/main/resources/org/apache/activemq/book/ch2/activemq.xml 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:251) at org.apache.activemq.console.Main.main(Main.java:107) Caused by: java.lang.IllegalArgumentException: Invalid broker URI, no scheme specified: xbean;src/main/resources/org/apache/activemq/book/ch2/activemq .xml at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:68) 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:91) ... 10 more ERROR: java.lang.Exception: java.lang.IllegalArgumentException: Invalid broker URI, no scheme specified: xbean;src/main/resources/org/apache/activemq/ book/ch2/activemq.xml java.lang.Exception: java.lang.IllegalArgumentException: Invalid broker URI, no scheme specified: xbean;src/main/resources/org/apache/activemq/book/ch 2/activemq.xml 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:251) at org.apache.activemq.console.Main.main(Main.java:107) Caused by: java.lang.IllegalArgumentException: Invalid broker URI, no scheme specified: xbean;src/main/resources/org/apache/activemq/book/ch2/activemq .xml at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:68) 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:91) ... 10 more C:\ActiveMq-example-src>%ACTIVEMQ_HOME%/bin/activemq xbean:C:/ActiveMq-example-src/src/main/resources/org/apache/activemq/book/ch2/activemq.xml Java Runtime: Sun Microsystems Inc. 1.6.0_17 C:\Java\jdk16_17\jre Heap sizes: current=5056k free=4470k max=520256k JVM args: -Dcom.sun.management.jmxremote -Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.proper ties -Dactivemq.classpath=C:\apache-activemq-530/conf; -Dactivemq.home=C:\apache-activemq-530 -Dactivemq.base=C:\apache-activemq-530 ACTIVEMQ_HOME: C:\apache-activemq-530 ACTIVEMQ_BASE: C:\apache-activemq-530 Loading message broker from: xbean:C:/ActiveMq-example-src/src/main/resources/org/apache/activemq/book/ch2/activemq.xml ERROR: java.lang.RuntimeException: Failed to execute start task. Reason: org.springframework.beans.factory.BeanDefinitionStoreException: Unrecognized xbean namespace mapping: http://activemq.org/config/1.0 java.lang.RuntimeException: Failed to execute start task. Reason: org.springframework.beans.factory.BeanDefinitionStoreException: Unrecognized xbean n amespace mapping: http://activemq.org/config/1.0 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:251) at org.apache.activemq.console.Main.main(Main.java:107) Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Unrecognized xbean namespace mapping: http://activemq.org/config/1.0 at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFromExtensionElement(XBeanNamespaceHandler.java:282) at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:156) at org.apache.xbean.spring.context.v2.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:49) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1297) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1287) at org.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.parseBeanDefinitions(XBeanBeanDefinitionDocumentReader.java:84) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java: 92) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507) at org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.registerBeanDefinitions(XBeanXmlBeanDefinitionReader.java:79) Any help or hint would be greatly appreciated!!! Yours, Frustrated. -- View this message in context: http://old.nabble.com/chapter-2-of-Manning-Mq-In-Action-tp28204195p28204195.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.