When I run the following code using spring batch I get an exception.
<job id="simpleJob">
<step id="parentStep">
<tasklet allow-start-if-complete="true">
<chunk reader="simpleReader" writer="simpleWriter" commit-interval="3"/>
</tasklet>
</step>
<step id="concreteStep1" parent="parentStep">
<tasklet start-limit="5">
<chunk processor="simpleProcessor" commit-interval="2"/>
</tasklet>
</step>
</job>
It gives the following exception:
Exception in thread "main" org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: The element [concreteStep1] is unreachable
I don’t understand why I am getting this error. I have seen similar code in the spring source. Even this does not work. Please help me out with this.
Parent step should be out of scope. That is: