[jboss-jira] [JBoss JIRA] (JBMETA-404) Validation errors with "jboss-web_11_0.xsd

Wolfgang Knauf (JIRA) issues at jboss.org
Tue Sep 25 15:48:00 EDT 2018


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

Wolfgang Knauf commented on JBMETA-404:
---------------------------------------

I am a bit confused that [pull request|https://github.com/jboss/metadata/commit/41dbfded4445049791dfb19cdb69177f99aa5a77] introduces two new files "jboss-web_12_1.xsd" and "jboss-web_11_1.xsd", but the files themselfs define a version "12.0" and "11.0". Even the schema location in the comment is "http://www.jboss.org/schema/jbossas/jboss-web_12_0.xsd". 
Older files (10_1.xsd or 7_2.xsd) don't have a consistent versioning, either.

The 12_1 file seems to validate in Eclipse.

> Validation errors with "jboss-web_11_0.xsd
> ------------------------------------------
>
>                 Key: JBMETA-404
>                 URL: https://issues.jboss.org/browse/JBMETA-404
>             Project: JBoss Metadata
>          Issue Type: Bug
>    Affects Versions: 10.0.2.Final
>            Reporter: ehsavoie Hugonnet
>            Assignee: ehsavoie Hugonnet
>             Fix For: 12.0.0.Final
>
>
> Eclipse reports some errors when validating a "jboss-web.xml" file which defines the 11.0 xsd.
> First problem: "web-app_3_1.xsd" is imported. The target namespace seems to be invalid, it should be "http://xmlns.jcp.org/xml/ns/javaee" instead of "http://java.sun.com/xml/ns/javaee" 
> <xsd:import namespace="http://xmlns.jcp.org/xml/ns/javaee" schemaLocation="http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"/>
> The validation error: *"The namespace attribute 'http://java.sun.com/xml/ns/javaee' of an import element information must be identical to the targetNamespace attribute 'http://xmlns.jcp.org/xml/ns/javaee' of the imported document".*
> It would probably also make sense to include the full schemaLocation URL ;-).
> After fixing the namespace, there are four more errors left:
> *src-resolve: Cannot resolve the name 'jboss:jndiEnvironmentRefsGroup' to a( n ) group component
> src-resolve: Cannot resolve the name 'javaee:generic-booleanType' to a( n ) 'simpleType definition' component
> src-ct.2.1: Complex type definition Representation Error for type 'symbolic-link-allowedType' ...
> src-resolve: Cannot resolve the name 'jboss:security-roleType' to a( n ) 'type definition' component*
> The first two errors: previous versions of jboss-web.xsd imported "jboss-common_6_0.xsd" which defined a "jndiEnvironmentRefsGroup". This file also imported "javaee_6.xsd", which defines the "generic-booleanType".



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list