Announcement Announcement Module
Collapse
No announcement yet.
Failed to load ApplicationContext Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Failed to load ApplicationContext

    Hi,

    I created a spring template from STS and when i ran the junits tests , i get the below error. I am new to spring batch and some how not able to overcome this error. Plz help ..

    Spring Release 2.1.2
    ---------------------------------------

    2010-07-27 10:13:43,956 INFO [org.springframework.beans.factory.xml.XmlBeanDefin itionReader] - <Loading XML bean definitions from class path resource [launch-context.xml]>
    2010-07-27 10:13:45,972 INFO [org.springframework.beans.factory.xml.XmlBeanDefin itionReader] - <Loading XML bean definitions from class path resource [META-INF/spring/module-context.xml]>
    2010-07-27 10:13:46,065 ERROR [org.springframework.test.context.TestContextManage r] - <Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.Dependenc yInjectionTestExecutionListener@238a47] to prepare test instance [org.springframework.sample.batch.example.ExampleJo bConfigurationTests@14b5f4a]>
    java.lang.IllegalStateException: Failed to load ApplicationContext
    at org.springframework.test.context.TestContext.getAp plicationContext(TestContext.java:308)
    at org.springframework.test.context.support.Dependenc yInjectionTestExecutionListener.injectDependencies (DependencyInjectionTestExecutionListener.java:109 )
    at org.springframework.test.context.support.Dependenc yInjectionTestExecutionListener.prepareTestInstanc e(DependencyInjectionTestExecutionListener.java:75 )
Working...
X