Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=XDT-317 Here is an overview of the issue: --------------------------------------------------------------------- Key: XDT-317 Summary: @web.servlet tag produces invalid web.xml for Servlets that employ inheritance Type: Bug Status: Assigned Priority: Major Time Spent: Unknown Estimate: 0 minutes Project: XDoclet Component: Web Module Assignee: xdoclet-devel (Use for new issues) Reporter: Stanford S. Guillory Created: Thu, 20 Feb 2003 10:55 AM Updated: Thu, 20 Feb 2003 10:55 AM Environment: Windows 2000/Windows NT/JDK 1.4.1/Tomcat 4.1.18 Description: If you have a servlet class that extends another servlet class, rather than HttpServlet directly, and you utilize the @web.servlet and @web.servlet-mapping tags in both the base class and the child class servlet, xdoclet will attempt to generate *two* <servlet> tags for the derived servlet class, one erroneously using the servlet name for the base servlet class. Example: /** * @web.servlet name="BadCode" * @web.servlet-mapping url-pattern="/badcode" */ public class BadCodeServlet extends HttpServlet {} /** * @web.servlet name="FilteredCode" * @web.servlet-mapping url-pattern="/filteredcode" */ public class FilteredCodeServlet extends BadCodeServlet {} The following entries will be generated in the deployment descriptor (web.xml): <servlet> <servlet-name>BadCode</servlet-name> <servlet-class>coreservlets.ch03.BadCodeServlet</servlet-class> </servlet> <servlet> <servlet-name>FilteredCode</servlet-name> <servlet-class>coreservlets.ch03.FilteredCodeServlet</servlet-class> </servlet> <servlet> <servlet-name>BadCode</servlet-name> <servlet-class>coreservlets.ch03.FilteredCodeServlet</servlet-class> </servlet> This deployment descriptor is not valid since a duplicate servlet-name is used, and app servers will reject it. Stan --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/xdoclet/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ xdoclet-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
