https://bz.apache.org/bugzilla/show_bug.cgi?id=66246

            Bug ID: 66246
           Summary: JspC generates invalid web.xml
           Product: Tomcat 9
           Version: 9.0.65
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
          Assignee: dev@tomcat.apache.org
          Reporter: sebastian.wo...@sw-k.net
  Target Milestone: -----

The Jasper-Compiler generates an invalid web.xml file when used with the option
"-webxml my-web.xml".

The root tag in the generated file is <web-fragment> but it should be
<web-app>. The closing tag at the end of the file is </web-app>, which is
correct.

I have tracked down the problem to the resources file in
"org/apache/jasper/resources/LocalStrings.properties". The property key
"jspc.webxml.header" contains the incorrect value: 

<?xml version="1.0" encoding="{0}"?>\n\
<web-fragment xmlns=...

while it should contain:

<?xml version="1.0" encoding="{0}"?>\n\
<web-app xmlns=...

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to