首页 文章

Spring Batch Admin不使用Spring Integration 2.1

提问于
浏览
1

我有一个使用Spring Integration 2.1.0和Spring Batch 2.2.7的现有Web应用程序 .

我想添加嵌入在这个现有Web应用程序中的Spring Batch Admin,但我无法使其工作 .

当我尝试使用当前的Spring Batch Admin版本(1.2.1)时,出现以下错误 .

SEVERE:异常将上下文初始化事件发送到类的监听器实例org.springframework.web.context.ContextLoaderListe ner org.springframework.beans.factory.parsing.BeanDefi nitionParsingException:配置问题:无法从URL位置导入bean定义[classpath * :/ META-INF / spring / batch / bootstrap / ** / * .xml]引起:org.springframework.beans.factory.parsing.BeanDefi nitionParsingException:配置问题:你不能在Spring Integration中使用以前版本的Spring Integration模式2.1 . 请升级架构声明或使用无版本别名(例如spring-integration.xsd) .

由于我不想降级我的Spring Integration版本,我试图使用Spring Batch Admin的1.3.0.M1(里程碑)版本 . 然后,我得到了似乎是另一个“Spring Integration不匹配的版本问题”......

SEVERE:StandardWrapper.Throwable org.springframework.beans.factory.parsing.BeanDefi nitionParsingException:配置问题:无法从URL位置导入bean定义[classpath *:/ META-INF / spring / batch / servlet / manager / * .xml ]违规资源:ServletContext资源[/WEB-INF/spring/batch-admin/batch-admin-context.xml];嵌套异常是org.springframework.beans.factory.xml.XmlBeanDefin itionStoreException:来自URL的XML文档中的第372行[jar:file:/ D:/axon-sevl/workspace-git/.metadata/.plugins/org.eclipse . wst.server.core / TMP0 / wtpwebapps / SII的web / WEB-INF / lib目录/ spring 批次管理经理,1.3.0.M1.jar!/ META-INF / Spring /批号/ servlet的/经理/集成-context.xml]无效;嵌套异常是org.xml.sax.SAXParseException; systemId:http://www.springframework.org/schem...tion-http.xsd; lineNumber:372; columnNumber:119; src-resolve:无法将名称“integration:adviceChainType”解析为(n)'type definition'组件 .

是否有人设法使其工作或我必须改变我目前正在使用的Spring Integration版本?

提前致谢!

1 回答

  • 1

    Spring Integration 2.1是一个 very 旧版本的Spring Integration(他们刚刚发布了版本4) . 您需要升级您的版本才能使其正常运行 .

相关问题