org.springframework.context.ApplicationContextException: Invalid application context: needs to be of type [org.springframework.context.ApplicationContext]

Spring JIRA | Markus Wolf | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Conflicting application contexts when combining @EnableWebMvc with @EnableContextResourceLoader (a spring-cloud-aws annotation)

    Stack Overflow | 2 years ago
    org.springframework.context.ApplicationContextException: Cannot reinitialize with different application context: current one is [WebApplicationContext for namespace 'apiv1-servlet': startup date [Thu May 28 10:17:58 EDT 2015]; parent: Root WebApplicationContext], passed-in one is [WebApplicationContext for namespace 'apiv1-servlet': startup date [Thu May 28 10:17:58 EDT 2015]; parent: Root WebApplicationContext]
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.springframework.context.ApplicationContextException

      Invalid application context: needs to be of type [org.springframework.context.ApplicationContext]

      at org.springframework.context.support.ApplicationObjectSupport.setApplicationContext()
    2. Spring Context
      ApplicationObjectSupport.setApplicationContext
      1. org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:74)
      1 frame