Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
-
None
-
Turing Sprint 192
Description
The org.apache.catalina Context addServletMapping method was deprecated in Tomcat 8 and removed in Tomcat 9.0.
To be able to run the tests with Tomcat 9 update addServletMapping to addServletMappingDecoded
From the JavaDoc
/**
- Add a new servlet mapping, replacing any existing mapping for
- the specified pattern.{{ *}}
- @param pattern URL pattern to be mapped. The pattern will be % decoded
- using UTF-8
- @param name Name of the corresponding servlet to execute{{ *}}
- @deprecated Will be removed in Tomcat 9. Use
- {{
{@link #addServletMappingDecoded(String, String)}
}}{{ */}}{{ @Deprecated}}{{ public void addServletMapping(String pattern, String name);}}