Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BD47AD810 for ; Mon, 3 Sep 2012 09:41:20 +0000 (UTC) Received: (qmail 95938 invoked by uid 500); 3 Sep 2012 09:41:20 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 95333 invoked by uid 500); 3 Sep 2012 09:41:13 -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 95263 invoked by uid 99); 3 Sep 2012 09:41:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2012 09:41:11 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gary.tully@gmail.com designates 74.125.82.45 as permitted sender) Received: from [74.125.82.45] (HELO mail-wg0-f45.google.com) (74.125.82.45) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2012 09:41:05 +0000 Received: by wgbdq12 with SMTP id dq12so3509412wgb.14 for ; Mon, 03 Sep 2012 02:40:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=sfRT9ucw7HS+hiF4WFPYvYqcmbFSFMnk+Z7JGjcj5p4=; b=wntGtLd8fLMl+bS4Wjo8fRooXEm8JXwnS/er6FtKiYuCLNM7Po7tziQV0hJ++96CDH CGU9jxl0r8/+JMUAqaaoxpRlvsxwz/c0yVnP5thC1e59jSYqcpefmDODjcyhW66vGq42 kvSgoeWf8QWQoCugOiP68ozgk8EVx+zgksZKtP0cYGNYDwi25oNYOcxNNQe1W78XoF+T K4EftRI+6CGtkrHHbC2peTN7akkj7XnZPdJG/mwM2tKK+KbEP/XExUDpz/s3g/EKgSvK EBIpd6jiD1XntPo+Fvf17V7ihWYlsgP7XFw11k0dWLRi7twe+7EfoBn0U4AYgGQHFNQO Xs6Q== MIME-Version: 1.0 Received: by 10.180.24.197 with SMTP id w5mr21927844wif.22.1346665244648; Mon, 03 Sep 2012 02:40:44 -0700 (PDT) Received: by 10.194.33.195 with HTTP; Mon, 3 Sep 2012 02:40:44 -0700 (PDT) In-Reply-To: <1346657123242-4655968.post@n4.nabble.com> References: <1346154261221-4655689.post@n4.nabble.com> <1346657123242-4655968.post@n4.nabble.com> Date: Mon, 3 Sep 2012 10:40:44 +0100 Message-ID: Subject: Re: Active MQ - timeout - any alternate option in v5.2? From: Gary Tully To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 true, 5.5 requires jdk 1.6 https://issues.apache.org/jira/browse/AMQ-3105 For the xml validation, you need to check against the schema for a given release to see what is supported. Also, note that there was an alphabetical ordering constraint in earlier versions. see: http://activemq.apache.org/xml-reference.html On 3 September 2012 08:25, akshay131 wrote: > Thanks a lot for the help... > > I thought of upgrading to Active MQ 5.6 but unfortunately its not supported > for java 1.5. Am i right ?? > > So instead i opted for v5.4.3. But I am facing issue with master/slave > config here. I am getting XML validation exception for tag 'services'. > > Below is the exception: > > /java.lang.RuntimeException: Failed to execute start task. Reason: > org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line > 148 in XML document from class path resource [activemq.xml] is invalid; > nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: > Invalid content was found starting with element 'services'. One of > '{"http://activemq.apache.org/schema/core":taskRunnerFactory, > "http://activemq.apache.org/schema/core":tempDataStore, > "http://activemq.apache.org/schema/core":transportConnectorURIs, > "http://activemq.apache.org/schema/core":transportConnectors, > WC[##other:"http://activemq.apache.org/schema/core"]}' is expected. > 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:143) > at > org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) > at > org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:85) > 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.xml.XmlBeanDefinitionStoreException: Line > 148 in XML document from class path resource [activemq.xml] is invalid; > nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: > Invalid content was found starting with element 'services'. One of > '{"http://activemq.apache.org/schema/core":taskRunnerFactory, > "http://activemq.apache.org/schema/core":tempDataStore, > "http://activemq.apache.org/schema/core":transportConnectorURIs, > "http://activemq.apache.org/schema/core":transportConnectors, > WC[##other:"http://activemq.apache.org/schema/core"]}' is expected. > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396) > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) > at > org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:111) > at > org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:104) > at > org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130) > at > org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467) > at > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397) > 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$1.(XBeanBrokerFactory.java:115) > at > org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:115) > at > org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:71) > at > org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)/ > > I have attached *activemq.xml* configuration of slave. I am not able to find > why this is giving issue. Is it not supported for v5.4.3 > > Pls help! > > Thanks!!! > > http://activemq.2283324.n4.nabble.com/file/n4655968/activemq.xml > activemq.xml > > > > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/Active-MQ-timeout-any-alternate-option-in-v5-2-tp4655689p4655968.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. -- http://fusesource.com http://blog.garytully.com