[BACKLOG-40823] - Upgrade the Tomcat version from current to 10.x.x with Java 17 #123
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request updates the project to use Jakarta EE APIs instead of Java EE APIs. It includes changes to replace
javax.servlet
imports withjakarta.servlet
, updates thepom.xml
dependencies to align with Jakarta EE, and introduces new method overrides to support Jakarta Servlet features.Migration to Jakarta EE
Replaced all
javax.servlet
imports withjakarta.servlet
in multiple files, includingHttpConnectionHelper.java
,InternalHttpServletRequest.java
,InternalHttpServletResponse.java
,ServletInputStreamWrapper.java
, andServletOutputStreamWrapper.java
. This ensures compatibility with Jakarta EE APIs. [1] [2] [3] [4] [5]Updated
pom.xml
to replace Java EE dependencies (javax.servlet-api
,jersey-servlet
,jersey-spring
,jsr311-api
, etc.) with Jakarta EE equivalents (jakarta.servlet-api
,jersey-container-servlet
,jersey-spring6
, etc.). Added exclusions to prevent conflicts. (F8a3b1ddL13R13, [1] [2] [3]Support for Jakarta Servlet Features
Added method overrides in
InternalHttpServletRequest.java
to support Jakarta Servlet features likechangeSessionId
,getRequestId
,getProtocolRequestId
,getServletConnection
, andupgrade
. These methods return default values or null for now. [1] [2]Added method overrides in
ServletInputStreamWrapper.java
andServletOutputStreamWrapper.java
for Jakarta Servlet features such asisFinished
,isReady
,setReadListener
, andsetWriteListener
. These methods currently return default values or perform no actions. [1] [2]Test Updates
HttpConnectionHelperTest.java
,InternalHttpServletRequestTest.java
,InternalHttpServletResponseTest.java
) to replacejavax.servlet
imports withjakarta.servlet
. This ensures test compatibility with the updated API. [1] [2] [3]