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
Cannot create MockHttpSession with servlet 2.x [SPR-11049] #15676
Comments
Sam Brannen commented The Servlet API mocks in Spring Framework 4.0 support Servlet 3.0 and higher, as can be seen in GitHub commit deba32cad9. The reason why Unfortunately, the Javadoc for So I'll update the Javadoc and resolve this issue as Works as Designed. Regards, Sam |
Sam Brannen commented Outstanding documentation issues have been addressed as described in the comments for GitHub commit 2e6c998168:
|
Franz Neumann commented What about those guys, who can't use Servlet 3.x i.e in Google Appengine it's defined on server as 2.5. Does it mean, that we can't use spring 4 before we changed to Servlet 3? |
Dave Syer commented No, it means you can't use Servlet 2.5 jars for testing. Your app will still run in Appengine. |
Franz Neumann commented Ok, Ive got it later. But, I actually tried to run my integration (unit) tests with Spring 4, but I got the same exception java.lang.NoClassDefFoundError: javax/servlet/SessionCookieConfig. I think it's because, I use also appengine test-libs for testing and there are also some incompatibilities
|
Sam Brannen commented As mentioned in the Spring Framework 4.0 Reference Manual...
|
Franz Neumann commented so i found a solution for my problem
|
Sam Brannen commented Great! Glad you found a solution, Franz. :) |
Dave Syer opened SPR-11049 and commented
This shows up in the Spring OAuth build with Spring 4.0:
Affects: 4.0 RC1
Issue Links:
Referenced from: commits 2e6c998
The text was updated successfully, but these errors were encountered: