You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2013/05/13 05:50:12 UTC

[Bug 54955] New: Mapping to application context root returns 404 after reload

https://issues.apache.org/bugzilla/show_bug.cgi?id=54955

            Bug ID: 54955
           Summary: Mapping to application context root returns 404 after
                    reload
           Product: Tomcat 7
           Version: 7.0.40
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Servlet & JSP API
          Assignee: dev@tomcat.apache.org
          Reporter: zhengyang4k@gmail.com
    Classification: Unclassified

Created attachment 30273
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30273&action=edit
A minimum war file to reproduce the bug with sources attached

URL mapping specified as ""(empty string) maps a servlet to the context root
according to servlet specification. This feature is working when an application
is deployed, but broken when it's reloaded. A reload will result in 404 error.
(Other url mappings are OK, only "")

Steps to reproduce:

1) Create a servlet with URL mapping as empty string, you can either use
@WebServlet("") annotation or <url-pattern></url-pattern> in web.xml

2) If you deploy it in Tomcat 7.0.40, it will work. (e.g.
http://localhost:8080/myapp/) 

3) But if you reload the app (say using the manager app),
http://localhost:8080/myapp/ will give 404 error. Servlet in step 1 is never
called this time.

Actual Results: 404 Not Found

Expected Results: Show the context root page.

Env: Tomcat 7.0.40, Java 7, Windows 8

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 54955] Mapping to application context root returns 404 after reload

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54955

Zheng Yang <zh...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zhengyang4k@gmail.com
                 OS|                            |All

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 54955] Mapping to application context root returns 404 after reload

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54955

Violeta Georgieva <vi...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
          Component|Servlet & JSP API           |Catalina
         Resolution|---                         |FIXED

--- Comment #1 from Violeta Georgieva <vi...@apache.org> ---
Thanks for the report.
Fixed in trunk and 7.0.x and will be included in 7.0.41 onwards.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org