You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "kexianjun (GitHub)" <gi...@apache.org> on 2018/10/04 14:33:47 UTC

[GitHub] [incubator-dubbo] kexianjun commented on issue #2538: 使用JavaConfig搭建框架时报错。 Throw Error:BeanDefinitionStoreException when build by JavaConfig

when using dubbo like this,it will load two ContextLoaderListeners,the first in the org.springframework.web.context.AbstractContextLoaderInitializer#registerContextLoaderListener by Spring,the second in the dubbo-config-spring/web-fragment.xml(This file configure a org.springframework.web.context.ContextLoaderListener) by dubbo,this error occured when load the second ContextLoaderListener.And when I remove the configuration of the ContextLoaderListener in dubbo-config-spring/web-fragment.xml,the error is gone.So I think maybe there is unnecessary to configure a ContextLoaderListener in dubbo-config-spring/web-fragment.xml,just let the application to configure ContextLoaderListener is fine,what do you think @zonghaishang 

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