[jira] [Commented] (OFBIZ-6993) Cannot find the declaration of element 'web-app' in version 3.0 files.

2019-12-14 Thread Mathieu Lirzin (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-6993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16996428#comment-16996428
 ] 

Mathieu Lirzin commented on OFBIZ-6993:
---

Hello Jacques, the fix is not backported on 17.12 and 18.12 yet, I was waiting 
some time to let people report potential issues introduced by the fix added on 
trunk. Since nobody has complain, I think we can proceed with the backport.

I don't have much time to devote to that backport task, [~jleroux] are you 
available to work on that? (the plugins repository needs to be updated too)

> Cannot find the declaration of element 'web-app' in version 3.0 files.
> --
>
> Key: OFBIZ-6993
> URL: https://issues.apache.org/jira/browse/OFBIZ-6993
> Project: OFBiz
>  Issue Type: Bug
>  Components: ALL COMPONENTS
>Affects Versions: Trunk, Release Branch 15.12
>Reporter: Forrest Rae
>Assignee: Mathieu Lirzin
>Priority: Major
> Fix For: Release Branch 17.12, Release Branch 18.12
>
> Attachments: 
> 0001-Fixed-when-it-comes-to-web.xml-we-should-rely-solely.patch, web-app.patch
>
>
> Been seeing the error below in the logs.  Strangely, I've not been able to 
> catch the exception in a debugger, but was able to isolate it to the 
> definition of the web-app with version 3.0.  The error disapears when you 
> change the definition from 
> {code:xml}
> 
> {code}
> to this:
> {code:xml}
>   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";>
> {code}
> I only tested on 15.12 and Trunk, but it probably affects any release running 
> Tomcat 7.0.48 or higher.  Here is the error:
> {noformat}
>  [java] Apr 07, 2016 4:06:29 PM org.apache.tomcat.util.digester.Digester 
> error
>  [java] SEVERE: Parse Error at line 22 column 24: cvc-elt.1.a: Cannot 
> find the declaration of element 'web-app'.
>  [java] org.xml.sax.SAXParseException; lineNumber: 22; columnNumber: 24; 
> cvc-elt.1.a: Cannot find the declaration of element 'web-app'.
>  [java]   at 
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
> Source)
>  [java]   at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown 
> Source)
>  [java]   at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
> Source)
>  [java]   at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
> Source)
>  [java]   at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
> Source)
>  [java]   at 
> org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown 
> Source)
>  [java]   at 
> org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
>  [java]   at 
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElementAfterName(Unknown
>  Source)
>  [java]   at 
> org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown
>  Source)
>  [java]   at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
>  Source)
>  [java]   at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
> Source)
>  [java]   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
> Source)
>  [java]   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
> Source)
>  [java]   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>  [java]   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
> Source)
>  [java]   at 
> org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
>  [java]   at 
> org.apache.tomcat.util.digester.Digester.parse(Digester.java:1555)
>  [java]   at 
> org.ofbiz.webapp.WebAppUtil.parseWebXmlFile(WebAppUtil.java:160)
>  [java]   at org.ofbiz.webapp.WebAppUtil.getWebXml(WebAppUtil.java:131)
>  [java]   at 
> org.ofbiz.webapp.WebAppUtil.getControlServletPath(WebAppUtil.java:67)
>  [java]   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  [java]   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>  [java]   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  [java]   at java.lang.reflect.Method.invoke(Method.java:498)
>  [java]   at 
> freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458)
>  [java]   at 
> freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:71)
>  [java]   at freemarker.core.MethodCall._eval(MethodCall.java:62)
>  [java]   at freemarker.core.Expression.eval(Expression.java:78)
>

[jira] [Closed] (OFBIZ-6993) Cannot find the declaration of element 'web-app' in version 3.0 files.

2019-12-14 Thread Jacques Le Roux (Jira)


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

Jacques Le Roux closed OFBIZ-6993.
--
Fix Version/s: (was: Upcoming Branch)
   Resolution: Fixed

This is fixed, thanks Samuel and Mathieu :)

> Cannot find the declaration of element 'web-app' in version 3.0 files.
> --
>
> Key: OFBIZ-6993
> URL: https://issues.apache.org/jira/browse/OFBIZ-6993
> Project: OFBiz
>  Issue Type: Bug
>  Components: ALL COMPONENTS
>Affects Versions: Trunk, Release Branch 15.12
>Reporter: Forrest Rae
>Assignee: Mathieu Lirzin
>Priority: Major
> Fix For: Release Branch 17.12, Release Branch 18.12
>
> Attachments: 
> 0001-Fixed-when-it-comes-to-web.xml-we-should-rely-solely.patch, web-app.patch
>
>
> Been seeing the error below in the logs.  Strangely, I've not been able to 
> catch the exception in a debugger, but was able to isolate it to the 
> definition of the web-app with version 3.0.  The error disapears when you 
> change the definition from 
> {code:xml}
> 
> {code}
> to this:
> {code:xml}
>   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";>
> {code}
> I only tested on 15.12 and Trunk, but it probably affects any release running 
> Tomcat 7.0.48 or higher.  Here is the error:
> {noformat}
>  [java] Apr 07, 2016 4:06:29 PM org.apache.tomcat.util.digester.Digester 
> error
>  [java] SEVERE: Parse Error at line 22 column 24: cvc-elt.1.a: Cannot 
> find the declaration of element 'web-app'.
>  [java] org.xml.sax.SAXParseException; lineNumber: 22; columnNumber: 24; 
> cvc-elt.1.a: Cannot find the declaration of element 'web-app'.
>  [java]   at 
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
> Source)
>  [java]   at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown 
> Source)
>  [java]   at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
> Source)
>  [java]   at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
> Source)
>  [java]   at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
> Source)
>  [java]   at 
> org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown 
> Source)
>  [java]   at 
> org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
>  [java]   at 
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElementAfterName(Unknown
>  Source)
>  [java]   at 
> org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown
>  Source)
>  [java]   at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
>  Source)
>  [java]   at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
> Source)
>  [java]   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
> Source)
>  [java]   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
> Source)
>  [java]   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>  [java]   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
> Source)
>  [java]   at 
> org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
>  [java]   at 
> org.apache.tomcat.util.digester.Digester.parse(Digester.java:1555)
>  [java]   at 
> org.ofbiz.webapp.WebAppUtil.parseWebXmlFile(WebAppUtil.java:160)
>  [java]   at org.ofbiz.webapp.WebAppUtil.getWebXml(WebAppUtil.java:131)
>  [java]   at 
> org.ofbiz.webapp.WebAppUtil.getControlServletPath(WebAppUtil.java:67)
>  [java]   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  [java]   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>  [java]   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  [java]   at java.lang.reflect.Method.invoke(Method.java:498)
>  [java]   at 
> freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458)
>  [java]   at 
> freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:71)
>  [java]   at freemarker.core.MethodCall._eval(MethodCall.java:62)
>  [java]   at freemarker.core.Expression.eval(Expression.java:78)
>  [java]   at freemarker.core.Assignment.accept(Assignment.java:70)
>  [java]   at freemarker.core.Environment.visit(Environment.java:312)
>  [java]   at freemarker.core.MixedContent.accept(MixedContent.java:62)
>  [java]   at 
> freemarker.core.Environment.visitByHiddingParent(Environment.java:333)
>  [java]   at

[jira] [Updated] (OFBIZ-6993) Cannot find the declaration of element 'web-app' in version 3.0 files.

2019-12-14 Thread Jacques Le Roux (Jira)


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

Jacques Le Roux updated OFBIZ-6993:
---
Environment: (was: Been seeing the error below in the logs.  Strangely, 
I've not been able to catch the exception in a debugger, but was able to 
isolate it to the definition of the web-app with version 3.0.  The error 
disapears when you change the definition from 

{code:xml}

{code}

to this:

{code:xml}
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";>
{code}

I only tested on 15.12 and Trunk, but it probably affects any release running 
Tomcat 7.0.48 or higher.  Here is the error:

{noformat}
 [java] Apr 07, 2016 4:06:29 PM org.apache.tomcat.util.digester.Digester 
error
 [java] SEVERE: Parse Error at line 22 column 24: cvc-elt.1.a: Cannot find 
the declaration of element 'web-app'.
 [java] org.xml.sax.SAXParseException; lineNumber: 22; columnNumber: 24; 
cvc-elt.1.a: Cannot find the declaration of element 'web-app'.
 [java] at 
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
Source)
 [java] at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown 
Source)
 [java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source)
 [java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source)
 [java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source)
 [java] at 
org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
 [java] at 
org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
 [java] at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElementAfterName(Unknown
 Source)
 [java] at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown
 Source)
 [java] at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
 [java] at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
 [java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
 [java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
 [java] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 [java] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
Source)
 [java] at 
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
 [java] at 
org.apache.tomcat.util.digester.Digester.parse(Digester.java:1555)
 [java] at 
org.ofbiz.webapp.WebAppUtil.parseWebXmlFile(WebAppUtil.java:160)
 [java] at org.ofbiz.webapp.WebAppUtil.getWebXml(WebAppUtil.java:131)
 [java] at 
org.ofbiz.webapp.WebAppUtil.getControlServletPath(WebAppUtil.java:67)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [java] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 [java] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 [java] at java.lang.reflect.Method.invoke(Method.java:498)
 [java] at 
freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458)
 [java] at 
freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:71)
 [java] at freemarker.core.MethodCall._eval(MethodCall.java:62)
 [java] at freemarker.core.Expression.eval(Expression.java:78)
 [java] at freemarker.core.Assignment.accept(Assignment.java:70)
 [java] at freemarker.core.Environment.visit(Environment.java:312)
 [java] at freemarker.core.MixedContent.accept(MixedContent.java:62)
 [java] at 
freemarker.core.Environment.visitByHiddingParent(Environment.java:333)
 [java] at 
freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:148)
 [java] at 
freemarker.core.Environment.visitIteratorBlock(Environment.java:559)
 [java] at freemarker.core.IteratorBlock.accept(IteratorBlock.java:67)
 [java] at freemarker.core.Environment.visit(Environment.java:312)
 [java] at freemarker.core.MixedContent.accept(MixedContent.java:62)
 [java] at 
freemarker.core.Environment.visitByHiddingParent(Environment.java:333)
 [java] at 
freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48)
 [java] at freemarker.core.Environment.visit(Environment.java:312)
 [java] at freemarker.core.MixedContent.accept(MixedContent.java:62)
 [java] at freemarker.core.Environment.visit(Environment.java:312)
 [java] at freemarker.core.Environment.process(Environment.java:290)
 [java

[jira] [Updated] (OFBIZ-6993) Cannot find the declaration of element 'web-app' in version 3.0 files.

2019-12-14 Thread Jacques Le Roux (Jira)


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

Jacques Le Roux updated OFBIZ-6993:
---
Description: 
Been seeing the error below in the logs.  Strangely, I've not been able to 
catch the exception in a debugger, but was able to isolate it to the definition 
of the web-app with version 3.0.  The error disapears when you change the 
definition from 

{code:xml}

{code}

to this:

{code:xml}
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";>
{code}

I only tested on 15.12 and Trunk, but it probably affects any release running 
Tomcat 7.0.48 or higher.  Here is the error:

{noformat}
 [java] Apr 07, 2016 4:06:29 PM org.apache.tomcat.util.digester.Digester 
error
 [java] SEVERE: Parse Error at line 22 column 24: cvc-elt.1.a: Cannot find 
the declaration of element 'web-app'.
 [java] org.xml.sax.SAXParseException; lineNumber: 22; columnNumber: 24; 
cvc-elt.1.a: Cannot find the declaration of element 'web-app'.
 [java] at 
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
Source)
 [java] at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown 
Source)
 [java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source)
 [java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source)
 [java] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source)
 [java] at 
org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
 [java] at 
org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
 [java] at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElementAfterName(Unknown
 Source)
 [java] at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown
 Source)
 [java] at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
 [java] at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
 [java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
 [java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
 [java] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 [java] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
Source)
 [java] at 
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
 [java] at 
org.apache.tomcat.util.digester.Digester.parse(Digester.java:1555)
 [java] at 
org.ofbiz.webapp.WebAppUtil.parseWebXmlFile(WebAppUtil.java:160)
 [java] at org.ofbiz.webapp.WebAppUtil.getWebXml(WebAppUtil.java:131)
 [java] at 
org.ofbiz.webapp.WebAppUtil.getControlServletPath(WebAppUtil.java:67)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [java] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 [java] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 [java] at java.lang.reflect.Method.invoke(Method.java:498)
 [java] at 
freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458)
 [java] at 
freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:71)
 [java] at freemarker.core.MethodCall._eval(MethodCall.java:62)
 [java] at freemarker.core.Expression.eval(Expression.java:78)
 [java] at freemarker.core.Assignment.accept(Assignment.java:70)
 [java] at freemarker.core.Environment.visit(Environment.java:312)
 [java] at freemarker.core.MixedContent.accept(MixedContent.java:62)
 [java] at 
freemarker.core.Environment.visitByHiddingParent(Environment.java:333)
 [java] at 
freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:148)
 [java] at 
freemarker.core.Environment.visitIteratorBlock(Environment.java:559)
 [java] at freemarker.core.IteratorBlock.accept(IteratorBlock.java:67)
 [java] at freemarker.core.Environment.visit(Environment.java:312)
 [java] at freemarker.core.MixedContent.accept(MixedContent.java:62)
 [java] at 
freemarker.core.Environment.visitByHiddingParent(Environment.java:333)
 [java] at 
freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48)
 [java] at freemarker.core.Environment.visit(Environment.java:312)
 [java] at freemarker.core.MixedContent.accept(MixedContent.java:62)
 [java] at freemarker.core.Environment.visit(Environment.java:312)
 [java] at freemarker.core.Environment.process(Environment.java:290)
 [java] at