Context initialization failed

I try run project,
log error>>>>>>>Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [cn/com/dataocean/eas/rest-dispatcher-spring.xml]; nested exception is java.io.FileNotFoundException: class path resource [cn/com/dataocean/eas/rest-dispatcher-spring.xml] cannot be opened because it does not exist
,but I run my restfull api done well,

rest-dispatcher-spring.xml:

<!-- Swagger resources -->
<mvc:resources mapping="swagger-ui.html" location="classpath:/META-INF/resources/"/>
<mvc:resources mapping="/webjars/**" location="classpath:/META-INF/resources/webjars/"/>

<bean id="sf_SwaggerConfig" class="cn.com.dataocean.eas.web.controller.SwaggerConfiguration"/>

<!-- Define a base package for your controllers-->
<context:component-scan base-package="cn.com.dataocean.eas.web.controller"/>

<!-- Define a base package for your controllers-->
    <security:http pattern="/rest/autoApi/**"
                   create-session="stateless"
                   entry-point-ref="oauthAuthenticationEntryPoint"
                   xmlns="http://www.springframework.org/schema/security">

        <intercept-url pattern="/rest/autoApi/**" access="isAuthenticated()"/>
        <anonymous enabled="false"/>
        <csrf disabled="true"/>
        <cors configuration-source-ref="cuba_RestCorsSource"/>
        <custom-filter ref="resourceFilter" before="PRE_AUTH_FILTER"/>
        <custom-filter ref="cuba_AnonymousAuthenticationFilter" after="PRE_AUTH_FILTER"/>
    </security:http>

swagger ui can run and swagger-ui.html I can see,this file is beloaded;I run this project in local env,this
error is not exist, help me!

Hi,
The error means exactly what is says: file “cn/com/dataocean/eas/rest-dispatcher-spring.xml” can not be found.

So you need to check your application property that points to this file.

I see,The file has been executed!so The error should not appear!

Do you still have this problem?
If yes, then can you share the full startup log of server?

When you run the project in local environment, it works, right? Then what is the environment where it fails? UberJar deployment, or Single War in Tomcat, or what?