[jbosstools-issues] [JBoss JIRA] (JBIDE-20533) Bean-validation quickstart fails to validate in jbt

Rob Stryker (JIRA) issues at jboss.org
Tue Sep 1 01:32:05 EDT 2015


     [ https://issues.jboss.org/browse/JBIDE-20533?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rob Stryker updated JBIDE-20533:
--------------------------------
    Description: 
bean-validation quickstart fails to validate in arquillian.xml. 

The arquillian_1_0.xsd file includes the following:

{code}
    <element name="container">
        <complexType>
            <choice minOccurs="1" maxOccurs="unbounded">
                <element ref="tns:configuration" minOccurs="0"  maxOccurs="1" />
                <!--
                <element ref="tns:dependencies" minOccurs="0" maxOccurs="1" />
                -->
                <element ref="tns:protocol" minOccurs="0" maxOccurs="unbounded" />
            </choice>
            <attribute name="qualifier" type="string" use="required" />
            <attribute name="default" type="boolean" use="optional" default="false" />
            <attribute name="mode" use="optional" default="suite">
                <simpleType>
                    <restriction base="string">
                        <enumeration value="suite" />
                        <enumeration value="class" />
                        <enumeration value="manual" />
                        <enumeration value="custom" />
                    </restriction>
                </simpleType>
            </attribute>
        </complexType>
        <unique name="unique-protocol-within-container">
            <annotation>
                <documentation>
                    @type must be unique between all
                    protocols in a container.
                </documentation>
            </annotation>
            <selector xpath="tns:protocol" />
            <field xpath="@type" />
        </unique>
    </element>
{code}

The arquillian.xml included in the example includes the following:

{code}
    <container qualifier="jboss" default="true">
        <!-- By default, arquillian will use the JBOSS_HOME environment variable.  Alternatively, the configuration below can be uncommented. -->
        <!--<configuration> -->
        <property name="jbossHome">C:/tools/wildfly-9.0.0.Final</property>
        <!--</configuration> -->
    </container>
{code}

Validation error is that "property" is not a valid sub-element, which is true based on the xsd file. 

  was:bean-validation quickstart fails to validate in arquillian.xml. 



> Bean-validation quickstart fails to validate in jbt
> ---------------------------------------------------
>
>                 Key: JBIDE-20533
>                 URL: https://issues.jboss.org/browse/JBIDE-20533
>             Project: Tools (JBoss Tools)
>          Issue Type: Sub-task
>          Components: server
>    Affects Versions: 4.3.0.CR1
>            Reporter: Rob Stryker
>
> bean-validation quickstart fails to validate in arquillian.xml. 
> The arquillian_1_0.xsd file includes the following:
> {code}
>     <element name="container">
>         <complexType>
>             <choice minOccurs="1" maxOccurs="unbounded">
>                 <element ref="tns:configuration" minOccurs="0"  maxOccurs="1" />
>                 <!--
>                 <element ref="tns:dependencies" minOccurs="0" maxOccurs="1" />
>                 -->
>                 <element ref="tns:protocol" minOccurs="0" maxOccurs="unbounded" />
>             </choice>
>             <attribute name="qualifier" type="string" use="required" />
>             <attribute name="default" type="boolean" use="optional" default="false" />
>             <attribute name="mode" use="optional" default="suite">
>                 <simpleType>
>                     <restriction base="string">
>                         <enumeration value="suite" />
>                         <enumeration value="class" />
>                         <enumeration value="manual" />
>                         <enumeration value="custom" />
>                     </restriction>
>                 </simpleType>
>             </attribute>
>         </complexType>
>         <unique name="unique-protocol-within-container">
>             <annotation>
>                 <documentation>
>                     @type must be unique between all
>                     protocols in a container.
>                 </documentation>
>             </annotation>
>             <selector xpath="tns:protocol" />
>             <field xpath="@type" />
>         </unique>
>     </element>
> {code}
> The arquillian.xml included in the example includes the following:
> {code}
>     <container qualifier="jboss" default="true">
>         <!-- By default, arquillian will use the JBOSS_HOME environment variable.  Alternatively, the configuration below can be uncommented. -->
>         <!--<configuration> -->
>         <property name="jbossHome">C:/tools/wildfly-9.0.0.Final</property>
>         <!--</configuration> -->
>     </container>
> {code}
> Validation error is that "property" is not a valid sub-element, which is true based on the xsd file. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jbosstools-issues mailing list