Adapt to jakarta.servlet* to prevent issues#418
Adapt to jakarta.servlet* to prevent issues#418kiril-keranov wants to merge 3 commits intoapache:masterfrom
Conversation
|
How does this not blow up users on javax stacks? |
Its been a while, I guess users still on javax stack should put some migration efforts if they haven't already. |
| <version>4.0.1</version> | ||
| <groupId>jakarta.servlet</groupId> | ||
| <artifactId>jakarta.servlet-api</artifactId> | ||
| <version>6.0.0</version> |
There was a problem hiding this comment.
The issue was experienced in a Tomcat 10.1.x supporting 6.0.0, latest Tomcat 11 though is already on 6.1.0, will update it
|
I'll create a PR that doesn't kneecap javax users... we'll see if it's any better. |
|
What do you think about PR #419, the servlet container config would need to be updated to point to the new class. |
@garydgregory thanks for addressing this! Wrote some comments in #419 |
|
Closing this PR in favor of PR #419. Thank you @kiril-keranov 🚀 |
In newer versions of commons-logging the
org.apache.commons.logging.impl.ServletContextCleaneris stilljavax.servlet*compatible. Versions 1.3.x though are widely used inTomcat 10/ TomEE 10.1.xwhich arejakarta.servlet.*compatible, for example latest versions of TomEE 10.1.x plume include commons-logging 1.3.5 in the tomee/lib folder subject of the common classloader.Thus if someone uses this
ServletContextCleanerwill result inThe PR addresses this issue. Apart from adjusting
org.apache.commons.logging.impl.ServletContextCleanerthejapicmp-maven-pluginis tuned to exclude this class from the checks in order not to signal for incompatibility because of the javax->jakarta modification.The existing
BasicServletTestCasecovers this so new test is not added.The issue is described also in LOGGING-199
mvn; that'smvnon the command line by itself.