File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion 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: 17260
    
    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 - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help with Spring Batch (Newbie)