Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help with Spring Batch (Newbie)

 
Jehan Jaleel
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have a simple Spring Batch job where I want one Spring bean called "oracleLoader" to load some data and another bean called "oracleWriter" to write that data. Here is the spring configuration XML file for it...


And here is the code from my Junit...



Right now this is failing with the error....



I am guessing this is because of the



in my configuration file, but I am at a loss how to fix it. Is there a different way I should be defining my batch job.

Thanks for any help.


 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One of the tags you are using is looking for the attribute called beanName to be set, but you aren't setting it. So the xml parser is throwing an exception saying your xml is not passing validation. Which tag has the beanName attribute? then set it to some value.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic