-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
SpringMVC Annotation Config fails due to multiple executions of Servlet Listeners #3097
Comments
Hi |
This happens to our Spring based applications also with just the only change going from 9.4.12 to 9.4.13. We are using the jetty-maven-plugin to launch our applications. |
Here's a minimal example with this regression: https://github.com/KingBuzzer/jetty-regression/
Needs JDK10 to compile. |
Thanks KingBuzzer for sample project. |
Yes, looks like there is a problem in the initialization sequence - we did make a change there for this release, but all regression tests were passing. I will look into it. Also, although its not the cause of the problem, you know you're using javax.servlet 4 and jetty-9.x series is designed for the javax.servlet 3, right? |
Thanks! Yes I just copied some code from our real app which is using tomcat-9 & servlet 4, but the dependency is in provided scope so should not do any harm here. |
Found the problem, see PR #3101 |
@mymbrooks @KingBuzzer thanks for the bug report and the reproduction webapp. Found and fixed the bug. Standby for release 9.4.14 (I knew 13 was an unlucky number!). |
When i upgrade jetty to 9.4.13 9.4.13.v20181111, My SpringMVC application failed to start with this error:
...check whether you have multiple ContextLoader* definitions...
Before 9.4.13 everything works fine.
Environment:
Windows 10 1809 x64
Java 11 x64
Jetty 9.4.13 9.4.13.v20181111
IDEA 2018.3 EAP
I used Annotation Config:
and build.gradle:
The text was updated successfully, but these errors were encountered: