Hello,
I have an error with my spring configuration at startup
when i have one applicationContext.xml that use spring Batch
with a jobCode:<context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:applicationContext.xml</param-value> </context-param>
It works wellCode:<job id="myJob"> <listeners> <listener> <beans:bean class="xxx.listener.LogInfoJobListener" scope="job"> </beans:bean> </listener> </listeners> <step id="myJobStep1"> <tasklet> ... </tasklet> </step> </job>
but if i added a second applicationContext-ws.xml (that used CXF - but even empty)
I get at startupCode:<context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:applicationContext.xml,classpath:applicationContext-ws.xml</param-value> </context-param>
Caused by: java.lang.IllegalStateException: No Scope registered for scope 'job'
Have you an idea ?
Thanks


Reply With Quote