You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Volodymyr Siedlecki (Jira)" <de...@myfaces.apache.org> on 2020/10/30 19:18:00 UTC

[jira] [Commented] (MYFACES-4363) XML Schema Validation Fails

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

Volodymyr Siedlecki commented on MYFACES-4363:
----------------------------------------------

I also experienced other errors when that param was set. 


[10/30/20 13:18:39:737 EDT] 00000037 org.apache.myfaces.webapp.AbstractFacesInitializer E An error occured while initializing MyFaces: org.xml.sax.SAXParseException; lineNumber: 148; columnNumber: 55; src-resolve: Cannot resolve the name ‘javaee:descriptionGroup’ to a(n) ‘group’ component.


[ERROR ] An error occured while initializing MyFaces: org.xml.sax.SAXParseException; systemId: file:///Users/siedlecki/libertyGit/open-liberty/dev/build.image/wlp/usr/servers/defaultServer/javaee_5.xsd; lineNumber: 32; columnNumber: 25; src-include.2.1: The targetNamespace of the referenced schema, currently ‘http://java.sun.com/xml/ns/javaee', must be identical to that of the including schema, currently 'http://xmlns.jcp.org/xml/ns/javaee’.
org.xml.sax.SAXParseException; systemId: file:///Users/siedlecki/libertyGit/open-liberty/dev/build.image/wlp/usr/servers/defaultServer/javaee_5.xsd; lineNumber: 32; columnNumber: 25; src-include.2.1: The targetNamespace of the referenced schema, currently ‘http://java.sun.com/xml/ns/javaee', must be identical to that of the including schema, currently ‘http://xmlns.jcp.org/xml/ns/javaee’.

I needed to update ValidatorLSResourceResolver to have it pick up the correct files when resolving resources. 

Secondly, I tried to simplify the FacesConfigVersionCheckHandler code.

> XML Schema Validation Fails
> ---------------------------
>
>                 Key: MYFACES-4363
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4363
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.2.13, 2.3.6, 2.3-next-M4
>            Reporter: Volodymyr Siedlecki
>            Priority: Minor
>
> Adding the parameter (false by default) to an app identifies schema failures. 
>  <context-param>
>  <param-name>org.apache.myfaces.VALIDATE_XML</param-name>
>  <param-value>true</param-value>
>  </context-param> 
> 2.3
> org.xml.sax.SAXParseException; lineNumber: 6; columnNumber: 19; cvc-elt.1.a: Cannot find the declaration of element 'faces-config'.
> 	at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204)
> ____________
> 2.2
> [ERROR   ] cvc-elt.1.a: Cannot find the declaration of element 'faces-config'.
> cvc-elt.1.a: Cannot find the declaration of element 'faces-config'.
> 2.0 seems to work fine.



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