Description
While working on using flexible reports during this discussion I found these errors in log:
2020-10-03 19:07:48,924 |jsse-nio-8443-exec-4 |UtilXml |E| XmlFileLoader: File Internal Content process error. Line: 20. Error message: TargetNamespace.2: Expecting no namespace, but the schema document has a target namespace of 'http://ofbiz.apache.org/Widget-Form'. 2020-10-03 19:07:48,924 |jsse-nio-8443-exec-4 |UtilXml |E| XmlFileLoader: File Internal Content process error. Line: 1. Error message: cvc-elt.1.a: Cannot find the declaration of element 'forms'. 2020-10-03 19:07:48,926 |jsse-nio-8443-exec-4 |UtilXml |E| XmlFileLoader: File Internal Content process error. Line: 20. Error message: TargetNamespace.2: Expecting no namespace, but the schema document has a target namespace of 'http://ofbiz.apache.org/Widget-Form'. 2020-10-03 19:07:48,929 |jsse-nio-8443-exec-4 |UtilXml |E| XmlFileLoader: File Internal Content process error. Line: 20. Error message: TargetNamespace.2: Expecting no namespace, but the schema document has a target namespace of 'http://ofbiz.apache.org/Widget-Form'. 2020-10-03 19:07:48,931 |jsse-nio-8443-exec-4 |UtilXml |E| XmlFileLoader: File Internal Content process error. Line: 20. Error message: TargetNamespace.2: Expecting no namespace, but the schema document has a target namespace of 'http://ofbiz.apache.org/Widget-Form'. 2020-10-03 19:07:48,933 |jsse-nio-8443-exec-4 |UtilXml |E| XmlFileLoader: File Internal Content process error. Line: 20. Error message: TargetNamespace.2: Expecting no namespace, but the schema document has a target namespace of 'http://ofbiz.apache.org/Widget-Form'. 2020-10-03 19:07:48,935 |jsse-nio-8443-exec-4 |UtilXml |E| XmlFileLoader: File Internal Content process error. Line: 20. Error message: TargetNamespace.2: Expecting no namespace, but the schema document has a target namespace of 'http://ofbiz.apache.org/Widget-Form'.
Turned out that it was due to an old use of noNamespaceSchemaLocation when dynamically creating forms. The fix is to use the same definition than in current forms.