Summary: | Unable to override default servlet when using Tomcat in embedded mode | ||
---|---|---|---|
Product: | Tomcat 7 | Reporter: | Fernando Ribeiro <fernando.ribeiro> |
Component: | Catalina | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | critical | CC: | cbeams |
Priority: | P2 | ||
Version: | 7.0.30 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All | ||
Attachments: | testcase |
Description
Fernando Ribeiro
2012-09-13 03:44:28 UTC
Created attachment 29366 [details]
testcase
There is a bug here but it was hard work to find. The lack of key information provided with the test case did not help. For future reference, the following information would have saved some considerable time: - Maven version required (build failed with 2.2.1, worked with 3.0.4) - Steps to execute the test case - Make clear the issue was with embedded mode The best test cases are as small as possible and are written as unit tests (of which plenty of examples exist in the code base - including ones that use SCIs). The bug was that the implicit servlets (JSP, default) when added in embedded mode were not marked as override-able. This has been fixed in trunk and 7.0.x and will be included in 7.0.31 onwards. I will make sure future tickets provide better info. Thanks. |