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
[BUG] 3.0.0 raises compilation error cannot access javax.servlet.http.HttpServletRequest
#33378
Comments
This is expected as support has been removed in favor of standard multipart support. The new baseline is Jakarta EE9+ APIs. See https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Release-Notes#miscellaneous and https://github.com/spring-projects/spring-framework/wiki/Upgrading-to-Spring-Framework-6.x#web-applications and spring-projects/spring-framework#29562. Thanks! |
@bclozel We have the same issue after upgrading spring boot to 3.x since |
@pcgeng please use StackOverflow for questions. Feel free to link to the question here. |
@bclozel I found a similar issue in StackOverflow: https://stackoverflow.com/questions/76517385/commons-fileupload-and-jakarta-servlet, but asked another question: https://stackoverflow.com/questions/76604140/cannot-use-javax-servlet-http-httpservletrequest-in-commons-fileupload1-5-after |
I found the one more bug while working Jakarta servlet or web. When you will try to access the HttpServletRequest has the newPushBuilder method always gives null object. If you will satisfied the condition but object remains the null |
Hi there,
I'm trying to migrate springboot from 2.7.5 to 3.0.0, and I got a compilation error when I try to run
mvn compile
.I think this should be a bug caused by the mismatch between the new version embeded tomcat and the legacy
commons-fileupload
.POM
FileUploadController.java
The text was updated successfully, but these errors were encountered: