It's not a secret anymore!
The moose likes Spring and the fly likes Help with Spring Batch (Newbie) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Help with Spring Batch (Newbie)" Watch "Help with Spring Batch (Newbie)" New topic

Help with Spring Batch (Newbie)

Jehan Jaleel
Ranch Hand

Joined: Apr 30, 2002
Posts: 196
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

Joined: Feb 05, 2001
Posts: 17276

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.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Help with Spring Batch (Newbie)
It's not a secret anymore!