最近更新下ActiveMQ 4.1.1与spring 2.0.6 配置所使用的xsd
因为4.1.1修复了不少bug,是当前的稳定版本,因此我更新了下,主要还是<xs:any>和<xs:element>的问题,看来ActiveMQ开发团队,对于spring new schema配置,测试还是比较少。附件包括我部分修改的(broker,transportConnector)xsd,和spring.schema.
因为4.1.1修复了不少bug,是当前的稳定版本,因此我更新了下,主要还是<xs:any>和<xs:element>的问题,看来ActiveMQ开发团队,对于spring new schema配置,测试还是比较少。附件包括我部分修改的(broker,transportConnector)xsd,和spring.schema.
评论功能维护中,当前仅展示历史评论。
请问你在springside下的bookstore这个例子中测试过了吗?我替换过去无法通过测试呢?错误提示为: ERROR - org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location Offending resource: file ; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 16 in XML document from class path resource is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.b: The content of element 'amq:jdbcPersistenceAdapter' is not complete. One of '{"http://activemq.org/config/1.0":adapter, "http://activemq.org/config/1.0":brokerService, "http://activemq.org/config/1.0":dataSource, "http://activemq.org/config/1.0":databaseLocker, "http://activemq.org/config/1.0":ds, "http://activemq.org/config/1.0":scheduledThreadPoolExecutor, "http://activemq.org/config/1.0":statements, "http://activemq.org/config/1.0":usageManager, "http://activemq.org/config/1.0":wireFormat, WC}' is expected. Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 16 in XML document from class path resource is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.b: The content of element 'amq:jdbcPersistenceAdapter' is not complete. One of '{"http://activemq.org/config/1.0":adapter, "http://activemq.org/config/1.0":brokerService, "http://activemq.org/config/1.0":dataSource, "http://activemq.org/config/1.0":databaseLocker, "http://activemq.org/config/1.0":ds, "http://activemq.org/config/1.0":scheduledThreadPoolExecutor, "http://activemq.org/config/1.0":statements, "http://activemq.org/config/1.0":usageManager, "http://activemq.org/config/1.0":wireFormat, WC}' is expected. Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.b: The content of element 'amq:jdbcPersistenceAdapter' is not complete. One of '{"http://activemq.org/config/1.0":adapter, "http://activemq.org/config/1.0":brokerService, "http://activemq.org/config/1.0":dataSource, "http://activemq.org/config/1.0":databaseLocker, "http://activemq.org/config/1.0":ds, "http://activemq.org/config/1.0":scheduledThreadPoolExecutor, "http://activemq.org/config/1.0":statements, "http://activemq.org/config/1.0":usageManager, "http://activemq.org/config/1.0":wireFormat, WC}' is expected.