Aleksandr Yaryna created AMQ-8060:
-------------------------------------
Summary: Attribute 'allowLinkStealing' is not allowed to appear in
element 'transportConnector'.
Key: AMQ-8060
URL: https://issues.apache.org/jira/browse/AMQ-8060
Project: ActiveMQ
Issue Type: Bug
Affects Versions: 5.16.0
Environment: Red Hat Linux
Reporter: Aleksandr Yaryna
Hi All,
We are trying to migrate from version 5.15.11 on 5.16.0.
And we have faced with an error with loading the activemq.xml:
2020-10-28 20:27:13,271 | ERROR | Failed to load: class path resource
[activemq.xml], reason: Line 126 in XML document from class path resource
[activemq.xml] is invalid; nested exception is org.xml.sax.SAXParseException;
lineNumber: 126; columnNumber: 163; cvc-complex-type.3.2.2: Attribute
'allowLinkStealing' is not allowed to appear in element 'transportConnector'. |
org.apache.activemq.xbean.XBeanBrokerFactory | main
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
126 in XML document from class path resource [activemq.xml] is invalid; nested
exception is org.xml.sax.SAXParseException; lineNumber: 126; columnNumber: 163;
cvc-complex-type.3.2.2: Attribute 'allowLinkStealing' is not allowed to appear
in element 'transportConnector'.
As I can see the problem is that we are using XML validation with referring on
generic XSD, like this:
{code:xml}
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://activemq.apache.org/schema/core
http://activemq.apache.org/schema/core/activemq-core.xsd">{code}
And allowLinkStealing attribute is absent in the new versions of the XSD
(generic and activemq-core-5.16.0.xsd).
While allowLinkStealing property is still available for Transport configuration
why it was excluded from XSD?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)