• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Help with Spring Batch (Newbie)

 
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.


 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic