java.lang.IllegalStateException:Context属性的类型不是WebApplicationContext:Root WebApplicationContext

时间:2017-02-01 01:05:13

标签: spring spring-mvc hybris

我正在运行SAP Hybris Commerce Suite 6.1。 我在应用程序启动时遇到问题,有人可以帮助我吗?

SEVERE: Exception starting filter cuppytrailfrontendPlatformFilterChain
java.lang.IllegalStateException: Context attribute is not of type WebApplicationContext: Root WebApplicationContext - /cuppytrailfrontend: startup date [Tue Jan 31 16:35:43 PST 2017]; parent: hybris Application context - master
        at org.springframework.web.context.support.WebApplicationContextUtils.getWebApplicationContext(WebApplicationContextUtils.java:130)
        at org.springframework.web.context.support.WebApplicationContextUtils.getWebApplicationContext(WebApplicationContextUtils.java:105)
        at org.springframework.web.filter.DelegatingFilterProxy.findWebApplicationContext(DelegatingFilterProxy.java:307)
        at org.springframework.web.filter.DelegatingFilterProxy.initFilterBean(DelegatingFilterProxy.java:234)
        at org.springframework.web.filter.GenericFilterBean.init(GenericFilterBean.java:194)
        at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
        at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
        at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
        at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4854)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5542)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

3 个答案:

答案 0 :(得分:0)

检查cuppytrailfrontend扩展中的应用程序上下文配置:spring配置文件。那里有任何声明类型错误的属性。

答案 1 :(得分:0)

看起来像春季版的问题。从Hybris 5.5开始,Spring 4正在支持。只要检查cuppy trail是否有更旧的弹簧版本。用弹簧4更新它。

答案 2 :(得分:0)

尝试从web / webroot / WEB-INF / lib中删除spring4 * jar,然后就可以了。