Bug 62677 - web.xml is malformed when JSPs are mapped to servlet
Summary: web.xml is malformed when JSPs are mapped to servlet
Status: RESOLVED DUPLICATE of bug 62662
Alias: None
Product: Tomcat 9
Classification: Unclassified
Component: Jasper (show other bugs)
Version: 9.0.11
Hardware: PC Linux
: P2 major (vote)
Target Milestone: -----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-05 08:31 UTC by Ganesh
Modified: 2018-09-05 08:38 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ganesh 2018-09-05 08:31:34 UTC
We compiled our web application code using Ant and Tomcat 9.0.11. When JSPs are complied, servlet mapping entries added to web.xml is malformed. 

This bug is not reproduced in Windows. 
This bug is not reproduced when Tomcat 9.0.8 is used. 
This bug is occurring in Linux with Tomcat 9.0.10 or Tomcat 9.0.11. 

Below is the malformed entries in Web.XML 

<servlet-mapping>
        <servlet-name>
    <servlet-mapping>
        <servlet-name>org.apache.jsp.com.core.test.ListMembers_jsporg.apache.jsp.com.test.reports.ReportsBody_jsp</servlet-name>
        <url-pattern></servlet-name>
        <url-pattern>/com/test/ListMembers.jsp</url-pattern>
    </servlet-mapping>
/com/test/reports/ReportsStatus.jsp</url-pattern>
    </servlet-mapping>
Comment 1 Mark Thomas 2018-09-05 08:38:56 UTC

*** This bug has been marked as a duplicate of bug 62662 ***