20

I had spring batch job similar to this one:

<batch:job id="job">
    <batch:step id="step1">
        ...
    </batch:step>
    <batch:step id="step2">
        ...
    </batch:step>
</batch:job>

and when tried to execute the job I got

BeanDefinitionParsingException: Configuration problem: The element [step2] is unreachable

1 Answer 1

35

The problem is that there is missing next attribute in step1:

<batch:step id="step1" next="step2">

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.