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

Using AbstractAnnotationConfigDispatcherHandlerInitializer to run Spring Webflux application as a WAR doesn't work [SPR-16084] #20633

Closed
spring-projects-issues opened this issue Oct 17, 2017 · 2 comments
Assignees
Labels
in: web status: duplicate

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Oct 17, 2017

Charles Tian opened SPR-16084 and commented

Please see the StackOverflow reference URL for more details.

The project is available at https://github.com/chyt/spring-reactive-playground/tree/liberty. This is building the WAR and deploying to Liberty. I have also tried deploying the same WAR to Tomcat 9 (not Spring embedded) and I get the same result.


Affects: 5.0 GA

Reference URL: https://stackoverflow.com/questions/46736435/running-spring-webflux-application-as-a-war

Issue Links:

  • #20837 AbstractReactiveWebInitializer does not property initialize ApplicationContext ("duplicates")
  • #20692 AbstractDispatcherHandlerInitializer does not detect WebFilter beans ("duplicates")

1 votes, 4 watchers

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Oct 24, 2017

dcxy commented

I used the time I also encountered this problem, I used the Spring and Spring WebFlux (not including Spring Boot and Spring Mvc), when I released to Tomcat, can not run. Specific reference:

https://github.com/dcxy0/Spring5WebFluxDemo

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Mar 7, 2018

Brian Clozel commented

Hi Charles Tian,

Sorry about the late reply.
I've managed to get your sample working with Spring Framework 5.0.4, thanks to the fixes introduced in #20837 and #20692.

Let me know if you need more information!
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web status: duplicate
Projects
None yet
Development

No branches or pull requests

2 participants