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 <[email protected]> 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.<init>(ResourceXmlApplicationContext.java:64) > at > org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52) > at > org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(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
