You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading spring to 5.3.4 the constructor of MockHttpServletRequest throws java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletMapping. The project uses older servlet api 3.1 because the tomcat 8.5.x is still used in production.
Thank you for info.
This is more cleaner than the change of version suggested in #26555. I am not in favour of running tests with another version (especially higher) than the version in production because new signatures can be easily used in main code and that mistake is not covered by test.
Affects: Spring Framework 5.3.4
After upgrading spring to 5.3.4 the constructor of
MockHttpServletRequest
throws java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletMapping. The project uses older servlet api 3.1 because the tomcat 8.5.x is still used in production.When the version of servlet api is changed to 4.0.0 or above, the exception is of course gone.
In [1] is mentioned that the older API should be sufficient for spring framework 5.x.
[1] https://github.com/spring-projects/spring-framework/wiki/Upgrading-to-Spring-Framework-5.x
The text was updated successfully, but these errors were encountered: