Uploaded image for project: 'Apache Tomcat Maven Plugin'
  1. Apache Tomcat Maven Plugin
  2. MTOMCAT-133

Servlet mapping to "/" does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.0
    • tomcat7
    • None
    • Mac OS X, Apple JRE 1.6

    Description

      Using the Servlet 3.0 possibilities to add and configure servlet (ServletContainerInitializer through Spring 3.1 WebApplicationInitializer), I try to map a servlet "/", but is not working properly.
      The servlet is started correctly, but the mapping does not work.
      If I replace "/" by "test/*", everything work perfectly.

      For information, the "/" mapping works well in a standalone tomcat 7.0.25.

      I put a sample project on github that reproduce the bug : https://github.com/hikage/tomcat7-bug

      Attachments

        Activity

          People

            olamy Olivier Lamy
            gcuisinier Gildas Cuisinier
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: