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 2022/08/30 16:19:09 UTC

[Bug 66246] New: JspC generates invalid web.xml

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.woelk@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 66246] JspC generates invalid web.xml

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

Han Li <li...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Han Li <li...@apache.org> ---
Thansk for your feedback.
Fixed in:
- 9.0.x for 9.0.66 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