2007-08-27

最近更新下ActiveMQ 4.1.1与spring 2.0.6 配置所使用的xsd

关键字: ActiveMQ 4.1.1,Spring 2.0.6 整合

       因为4.1.1修复了不少bug,是当前的稳定版本,因此我更新了下,主要还是<xs:any>和<xs:element>的问题,看来ActiveMQ开发团队,对于spring new schema配置,测试还是比较少。附件包括我部分修改的(broker,transportConnector)xsd,和spring.schema.

 

评论
acekeen 2007-09-15
请问你在springside下的bookstore这个例子中测试过了吗?我替换过去无法通过测试呢?错误提示为:
ERROR [org.springframework.web.context.ContextLoader] - <Context initialization failed>
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath:com/ezwin/webapp/activemq/applicationContext-activemq-embedded-jencks-persistence.xml]
Offending resource: file [d:\Tomcat\webapps\ROOT\WEB-INF\classes\spring\applicationContext-plugins.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 16 in XML document from class path resource [com/ezwin/webapp/activemq/applicationContext-activemq-embedded-jencks-persistence.xml] 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[##other:"http://activemq.org/config/1.0"]}' is expected.
Caused by:
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 16 in XML document from class path resource [com/ezwin/webapp/activemq/applicationContext-activemq-embedded-jencks-persistence.xml] 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[##other:"http://activemq.org/config/1.0"]}' 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[##other:"http://activemq.org/config/1.0"]}' is expected.
发表评论

您还没有登录,请登录后发表评论

cctvx1
搜索本博客
最近加入圈子
存档
最新评论