The implementation was removed for several Jakarta Servlet methods

Several Jakarta Servlet methods have been deprecated for removal in Jakarta Servlet 6.0 to align with RFC 6265. In addition, the behavior of these methods has been changed so the setters no longer have any effect, the getComment methods return null, and the getVersion method returns 0. You should remove the usage of these methods from your application.

Deprecated Jakarta Servlet Methods:

For more information, see the deprecation notes in the Servlet 6.0 Javadoc.