Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

关于 Dubbo web-fragment 配置 "org.springframework.web.context.ContextLoaderListener" 监听器 #3098

Closed
Johnson-Jia opened this issue Dec 29, 2018 · 6 comments

Comments

@Johnson-Jia
Copy link

请问什么时候修复 web-fragment.xml 配置的Spring 监听器 “org.springframework.web.context.ContextLoaderListener” , 具体发版日期能提供一下吗?

@lohcve
Copy link

lohcve commented Jan 4, 2019

我也是被这个问题坑了一整天,我从2.6.2升级到2.6.5后,从外部tomcat启动spring boot项目会报错,后来慢慢调试tomcat的源代码才发现多出了一个ContextLoaderListener监听器,dubbo只能用2.6.2的版本,超过这个版本就存在web-fragment.xml 文件,这个文件中配置了一个“org.springframework.web.context.ContextLoaderListener”监听器,导致在外部tomcat中运行spring boot项目时,会执行这个监听器,然后就抛出异常。使用spring boot内嵌tomcat没有问题。

@Johnson-Jia
Copy link
Author

是的,新版本会修复这个问题,但是不清楚 2.7.0 什么时候发布,感觉应该这几周就会发布。

@mangowbm
Copy link

@Johnson-Jia 有确认新版本会解决这个问题么?? 2.6.6+还是要2.7.x的,外部tomcat运行有什么方式可以临时解决么?

@Johnson-Jia
Copy link
Author

2.7. x 会解决这个问题, 因为 2.6.[3 4 5] 在dubbo-config/dubbo-config-spring 下面引入了 web-fragment.xml 配置文件,配置了 ContextLoaderListener 。

临时解决可以把dubbo 切换到2.6.2版本。

@beiwei30
Copy link
Member

beiwei30 commented Feb 2, 2019

it's been fixed.

@beiwei30 beiwei30 closed this as completed Feb 2, 2019
@beiwei30
Copy link
Member

beiwei30 commented Feb 2, 2019

#2725 and #2734

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants