You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Gaudin Pierre (Jira)" <ji...@apache.org> on 2019/10/04 19:43:00 UTC

[jira] [Updated] (OFBIZ-11235) web.xml parser error

     [ https://issues.apache.org/jira/browse/OFBIZ-11235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gaudin Pierre updated OFBIZ-11235:
----------------------------------
    Attachment: OFBIZ-11235_webxmlParserError.patch

> web.xml parser error
> --------------------
>
>                 Key: OFBIZ-11235
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11235
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Trunk
>            Reporter: Gaudin Pierre
>            Priority: Minor
>             Fix For: Trunk
>
>         Attachments: OFBIZ-11235_webxmlParserError.patch
>
>
> Hello,
> Using the "setbaseurl()" method of the "notificationServices" class, we found a problem when loading definitions from "web.XML" files. Indeed, when checking "web.xml" files by the "parseWebXmlFile" method of the "WebAppUtil" class, errors are generated. These errors are not blocking but they pollute the logs.
> By searching more precisely we found that the definition of the "<web-app>" tags in the web.xml files was incomplete. Indeed according to the [documentation|https://docs.oracle.com/cd/E14571_01/web.1111/e13712/web_xml.htm#WBAPP502] the tag must be made up this way:
> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">
> By modifying all "web.xml" files there is no more error
> The following patch modifies the "<web-app>" declaration of all web.xml files for all components.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)