Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BeanDefinitionParsingException: Configuration: The element [step2] is unreachable

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
like image 768
Betlista Avatar asked Nov 29 '13 16:11

Betlista


1 Answers

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

<batch:step id="step1" next="step2">
like image 191
Betlista Avatar answered Nov 05 '22 00:11

Betlista