java.lang.IllegalStateException: Failed to load ApplicationContext

maven-users | ghostwolf59 | 2 years ago
  1. 0

    maven dependency issue (sqljdbc4.jar not picked up during junit test)

    maven-users | 2 years ago | ghostwolf59
    java.lang.IllegalStateException: Failed to load ApplicationContext
  2. 0

    maven dependency issue (sqljdbc4.jar not picked up during junit test)

    maven-users | 2 years ago | ghostwolf59
    java.lang.IllegalStateException: Failed to load ApplicationContext
  3. 0

    Could the sculptor-shipping example be successfully built? There are test failures in my build.

    Google Groups | 3 years ago | zhongweijuncn
    java.lang.IllegalStateException: Failed to load ApplicationContext
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Failed to load Spring ApplicationContext

    Stack Overflow | 3 years ago | Edmond
    java.lang.IllegalStateException: Failed to load ApplicationContext

  1. andyglick 4 times, last 2 months ago
  2. pradhul 1 times, last 9 months ago
13 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    Failed to load ApplicationContext

    at org.springframework.test.context.TestContext.getApplicationContext()
  2. Spring TestContext
    SpringJUnit4ClassRunner$1.runReflectiveCall
    1. org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308)
    2. org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
    3. org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
    4. org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:333)
    5. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)
    6. org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)
    6 frames
  3. JUnit
    ReflectiveCallable.run
    1. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    1 frame
  4. Spring TestContext
    SpringJUnit4ClassRunner.runChild
    1. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:303)
    2. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
    2 frames
  5. JUnit
    BlockJUnit4ClassRunner.runChild
    1. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    1 frame