Reputation: 47
I am receiving an error while running this command in unix:
java -cp "code-base-1.0-SNAPSHOT.jar:lib/*"
org.springframework.batch.core.launch.support.CommandLineJobRunner
iJob.xml processJob
The error:
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [iJob.xml]; nested exception is java.io.FileNotFoundException: class path resource [iJob.xml] cannot be opened because it does not exist
How can I resolve this?
Upvotes: 1
Views: 204
Reputation: 1672
iJob.xml
is in the wrong location probably.
Correct this path in your main class where you are loading the xml configuration file would fix your issue.
Upvotes: 1