1
votes

I have an existing Web application using Spring Integration 2.1.0 and Spring Batch 2.2.7.

I want to add Spring Batch Admin embedded in this existing Web app, but I can't make it work.

When I try to use the current Spring Batch Admin release (1.2.1), I get the following error.

SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListe ner org.springframework.beans.factory.parsing.BeanDefi nitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath*:/META-INF/spring/batch/bootstrap/**/*.xml]

Caused by: org.springframework.beans.factory.parsing.BeanDefi nitionParsingException: Configuration problem: You cannot use prior versions of Spring Integration schemas with Spring Integration 2.1. Please upgrade your schema declarations or use versionless aliases (e.g. spring-integration.xsd).

Since I don't want to downgrade my Spring Integration version, I've tried to used the 1.3.0.M1 (milestone) version of Spring Batch Admin. Then again, I get what seems to be another "Spring Integration mismatched versions problem"...

SEVERE: StandardWrapper.Throwable org.springframework.beans.factory.parsing.BeanDefi nitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath*:/META-INF/spring/batch/servlet/manager/*.xml] Offending resource: ServletContext resource [/WEB-INF/spring/batch-admin/batch-admin-context.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefin itionStoreException: Line 372 in XML document from URL [jar:file:/D:/axon-sevl/workspace-git/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/sii-web/WEB-INF/lib/spring-batch-admin-manager-1.3.0.M1.jar!/META-INF/spring/batch/servlet/manager/integration-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException; systemId: http://www.springframework.org/schem...tion-http.xsd; lineNumber: 372; columnNumber: 119; src-resolve: Cannot resolve the name 'integration:adviceChainType' to a(n) 'type definition' component.

Is there anyone who managed to make it work or do I absolutely have to change the Spring Integration version I'm currently using?

Thanks in advance!

1

1 Answers

1
votes

Spring Integration 2.1 is a very old version of Spring Integration (they just released version 4). You'll need to upgrade your version to get it working.