Announcement Announcement Module
No announcement yet.
Problem in writing sample Batch job Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem in writing sample Batch job

    Hi ,

    I am new to spring framework and recently came across needto use spring batch framework.
    After following introduction and sample code , I am trying to make a sample helloworld job, which doesnt do anything..
    I have made a helloworld.xml & put with other sample xmls
    added its entries in to .springBeans.

    I have made a test class while trying to run this test class it always fails and error message is

    org.springframework.beans.factory.BeanDefinitionSt oreException: IOException parsing XML document from class path resource [jobs/HelloWorld.xml]; nested exception is class path resource [jobs/HelloWorld.xml] cannot be opened because it does not exist

    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR

    - I dont know if we are supposed to make entries at other place.
    - Do we have detaile beginners document for spring batch ?
    - Do I need to know spring framework before switching over to spring batch ?
    - I have also tried modifying existing sample xml and putting my class name but again it is loading old class only ... ?? Dont know exactly how it is happening

    Awaiting some angel to remove me out of this problem.

  • #2
    This doesn't look like a Spring Batch issue, it looks like there's an issue with the file not existing on your classpath. Spring core throws the FileNotFound exception when the ClassPathXmlApplicationContext tries to load the file.


    • #3
      Thanks, It started working. Now i need to explore more features of spring batch framework...
      Will trouble you guys