This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Help with Spring Batch (Newbie)" Watch "Help with Spring Batch (Newbie)" New topic
Author

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
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17276
    
    6

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


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Help with Spring Batch (Newbie)
 
jQuery in Action, 3rd edition