Uploaded image for project: '[Read Only] - Hippo Repository'
  1. [Read Only] - Hippo Repository
  2. REPO-2139

Update jaxrs tests to support Tomcat 9.0

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 13.0.0, 4.2.11, 5.6.0
    • None
    • None

    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);}}

      Attachments

        Activity

          People

            Unassigned Unassigned
            abanck Arent-Jan Banck (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: