简体   繁体   中英

Running spring batch job in unix

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM