首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

配置 spring batch 报错,该如何处理

2012-04-26 
配置 spring batch 报错突然要用到Spring Batch,就在网上找了一个小例子熟悉下。但在部署环境时老是会报错。

配置 spring batch 报错
突然要用到Spring Batch,就在网上找了一个小例子熟悉下。但在部署环境时老是会报错。
例子:http://www.cnblogs.com/gulvzhe/archive/2011/10/31/2230655.html

spring 3.0 + Eclipse + spring-batch 2.1.8

报错信息如下:
Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 22 in XML document from class path resource [batch.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'job'.

Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'job'.

在网上google了很久
例如将:将xsd 本地化,还是没什么用。

都没找到解决办法。

[解决办法]
根据提示好像是说在:batch.xml的22行出错了。
主要问题好像是出现没有"job"这个标签元素。

热点排行