opscode-cookbooks/activemq — pull request #18 by bharghav9 (2014-06-26 21:29:05+00:00)
Title:        1. Fixed issue 'cvc-complex-type.3.2.2: Attribute \'destroyApplic...

Hi,

'activemq' service doesn't start because of the 'destroyApplicationContextOnStop' on 'broker' element in 'activemq.xml.erb' template. 'activemq' service throws below error in the error log '/opt/apache-activemq-5.9.1/data/activemq.log'.

This issue had been fixed by removing 'destroyApplicationContextOnStop' attribute from the 'broker' element.

'ChefSpec' and 'ServerSpec' tests have been executed and both are successful.

===========ChefSpec=============
activemq::default
Has activemq service enabled?
Start activemq service

Finished in 2.7 seconds
2 examples, 0 failures

ChefSpec Coverage report generated...

Total Resources: 12
Touched Resources: 1
Touch Coverage: 8.33%

==============ServerSpec=============
ActiveMQ server
should be running the activemq server

Finished in 2.19 seconds
1 example, 0 failures

==========================
org.apache.activemq.xbean.XBeanBrokerFactory$1 | WrapperSimpleAppMain
2014-06-26 15:10:36,687 | ERROR | Failed to load: class path resource [activemq.xml], reason: Line 35 in XML document from class path resource [activemq.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 35; columnNumber: 160; cvc-complex-type.3.2.2: Attribute 'destroyApplicationContextOnStop' is not allowed to appear in element 'broker'. | org.apache.activemq.xbean.XBeanBrokerFactory | WrapperSimpleAppMain
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 35 in XML document from class path resource [activemq.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 35; columnNumber: 160; cvc-complex-type.3.2.2: Attribute 'destroyApplicationContextOnStop' is not allowed to appear in element 'broker'.
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
===========================

Thanks.

Vijay B.