You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "yangfuhai (GitHub)" <gi...@apache.org> on 2018/09/27 07:54:02 UTC

[GitHub] [incubator-dubbo] yangfuhai commented on issue #2570: dubbo无法在 【非spring + tomcat】环境下运行

> @yangfuhai could u pls. provide a demo to reproduce this problem?

已经定位到问题,原因是当排除spring依赖后,dubbo 2.6.3 下有web-fragment.xml文件,web-fragment.xml会自动去加载 org.springframework.web.context.ContextLoaderListener 导致tomcat无法正常启动。

建议修改:

ContextLoaderListener 修改为 DubboContextLoaderListener,在 DubboContextLoaderListener 里去查看spring是否存在,存在就启动spring 的 ContextLoaderListener,否则什么都不做。

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/2570 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org