You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Aleksandr Yaryna (Jira)" <ji...@apache.org> on 2021/03/04 10:29:00 UTC
[jira] [Closed] (AMQ-8060) Attribute 'allowLinkStealing' is not
allowed to appear in element 'transportConnector'.
[ https://issues.apache.org/jira/browse/AMQ-8060?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aleksandr Yaryna closed AMQ-8060.
---------------------------------
> 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
> Components: Broker
> Affects Versions: 5.16.0
> Environment: Red Hat Linux
> Reporter: Aleksandr Yaryna
> Assignee: Jean-Baptiste Onofré
> Priority: Minor
> Fix For: 5.17.0, 5.16.1
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> 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)