kexianjun edited a comment on issue #2538: 使用JavaConfig搭建框架时报错。 Throw Error:BeanDefinitionStoreException when build by JavaConfig URL: https://github.com/apache/incubator-dubbo/issues/2538#issuecomment-427042291 I reproduce the same problem locally. 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 it is fine,what do you think @zonghaishang
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services