[jbosstools-issues] [JBoss JIRA] (JBIDE-12990) Weird XML validation errors for JSF facelet template

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Mon Nov 5 17:20:17 EST 2012


    [ https://issues.jboss.org/browse/JBIDE-12990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12731913#comment-12731913 ] 

Viacheslav Kabanovich commented on JBIDE-12990:
-----------------------------------------------

The message is added by 'org.eclipse.wst.xml.core.xml validator. The delegate class that performed validation is org.eclipse.wst.xml.core.internal.validator.XMLValidator. It expects that namespace references XML schema. Instead, the reference targets a tag library, which XML validator considers as a schema with syntax errors. Here are examples of nested errors:

{code}
schema_reference.4: Failed to read schema document 'file:/home/slava/JBossTools/jbosstools-jst/plugins/org.jboss.tools.jst.web.kb/taglibs/tld/facelets_jsf_core.taglib.xml', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
{code}

{code}
s4s-elt-invalid: Element 'facelet-taglib' is not a valid element in a schema document.
{code}

{code}
s4s-elt-schema-ns: The namespace of element 'facelet-taglib' must be from the schema namespace, 'http://www.w3.org/2001/XMLSchema'.
{code}

{code}
s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'The core JavaServer Faces custom actions that are independent of'.
{code}


                
> Weird XML validation errors for JSF facelet template
> ----------------------------------------------------
>
>                 Key: JBIDE-12990
>                 URL: https://issues.jboss.org/browse/JBIDE-12990
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: UpStream
>    Affects Versions: 4.0.0.Beta1
>         Environment: JBoss Developer Studio 6.0.0.Beta1
>            Reporter: Marek Novotny
>            Assignee: Viacheslav Kabanovich
>             Fix For: 4.1.x
>
>
> Importing http://anonsvn.jboss.org/repos/seam/branches/community/Seam_2_3/examples/blog/
> ends with a few weird errors for blog-web project.
> {noformat}
> Description	Resource	Path	Location	Type
> Referenced file contains errors (file:/home/mnovotny/apps/jbdevstudio6/studio/plugins/org.jboss.tools.jst.web.kb_3.4.0.Beta1-v20121018-0628-B39/taglibs/tld/html_basic.taglib.xml).  For more information, right click on the message in the Problems View and select "Show Details..."	index.xml	/blog-web/target/m2e-wtp/web-resources	line 1	XML Problem
> Referenced file contains errors (file:/home/mnovotny/apps/jbdevstudio6/studio/plugins/org.jboss.tools.jst.web.kb_3.4.0.Beta1-v20121018-0628-B39/taglibs/tld/html_basic.taglib.xml).  For more information, right click on the message in the Problems View and select "Show Details..."	index.xml	/blog-web/src/main/webapp	line 1	XML Problem
> cvc-elt.1: Cannot find the declaration of element 'f:view'.	index.xml	/blog-web/target/m2e-wtp/web-resources	line 7	XML Problem
> Referenced file contains errors (file:/home/mnovotny/apps/jbdevstudio6/studio/plugins/org.jboss.tools.jst.web.kb_3.4.0.Beta1-v20121018-0628-B39/taglibs/tld/facelets_jsf_core.taglib.xml).  For more information, right click on the message in the Problems View and select "Show Details..."	index.xml	/blog-web/target/m2e-wtp/web-resources	line 1	XML Problem
> Referenced file contains errors (file:/home/mnovotny/apps/jbdevstudio6/studio/plugins/org.jboss.tools.jst.web.kb_3.4.0.Beta1-v20121018-0628-B39/taglibs/tld/facelets_jsf_core.taglib.xml).  For more information, right click on the message in the Problems View and select "Show Details..."	index.xml	/blog-web/target/blog-web	line 1	XML Problem
> cvc-elt.1: Cannot find the declaration of element 'f:view'.	index.xml	/blog-web/src/main/webapp	line 7	XML Problem
> Referenced file contains errors (file:/home/mnovotny/apps/jbdevstudio6/studio/plugins/org.jboss.tools.jst.web.kb_3.4.0.Beta1-v20121018-0628-B39/taglibs/tld/facelets_jsf_core.taglib.xml).  For more information, right click on the message in the Problems View and select "Show Details..."	index.xml	/blog-web/src/main/webapp	line 1	XML Problem
> cvc-elt.1: Cannot find the declaration of element 'f:view'.	index.xml	/blog-web/target/blog-web	line 7	XML Problem
> Referenced file contains errors (file:/home/mnovotny/apps/jbdevstudio6/studio/plugins/org.jboss.tools.jst.web.kb_3.4.0.Beta1-v20121018-0628-B39/taglibs/tld/html_basic.taglib.xml).  For more information, right click on the message in the Problems View and select "Show Details..."	index.xml	/blog-web/target/blog-web	line 1	XML Problem
> {noformat}
> Basically there are 3 types of error:
> 1. it say f:view tag definition cannot be found
> 2. definition of jbdevstudio6/studio/plugins/org.jboss.tools.jst.web.kb_3.4.0.Beta1-v20121018-0628-B39/taglibs/tld/facelets_jsf_core.taglib.xml is not valid
> 3. definition of jbdevstudio6/studio/plugins/org.jboss.tools.jst.web.kb_3.4.0.Beta1-v20121018-0628-B39/taglibs/tld/html_basic.taglib.xml is not valid

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list