Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Problem with Spring 3.0 when DispatcherServlet is decladed as a Spring bean itself [SPR-6964] #11629

Closed
spring-projects-issues opened this issue Mar 9, 2010 · 1 comment
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

Pablo opened SPR-6964 and commented

When multiple DispatcherServlet instances are configured in the root application context, in spring 3.0, all those instances get the refresh events from all application contexts. Each refresh event forces the DispatcherServlet to reconfigure the handler mappings with the context being refreshed. As a result, all DispatcherServlets end up being configured with the same mappings, as if they all where sharing the same spring app context.


Affects: 3.0.1

Reference URL: http://forum.springsource.org/showthread.php?p=287750#post287750

Referenced from: commits 461c200

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

I've addressed this for 3.0.2, restricting onApplicationEvent callbacks on DispatcherServlet itself to its local ApplicationContext only. This will be available in tonight's 3.0.2 snapshot - feel free to give it an early try if you have the chance, and let me know whether it works for you.

Juergen

@spring-projects-issues spring-projects-issues added type: bug A general bug in: web Issues in web modules (web, webmvc, webflux, websocket) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 3.0.2 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants