3 Replies Latest reply on Oct 24, 2007 7:01 AM by Carlo de Wolf

    duplicate jndi-name in jboss_5_0.xsd

    Scott Stark Master

      There is a conflict in the current use of the jndi-name from ejb-local-refType and ejb-refTypes because they define both a jndi-name element, and refer to the jboss:resourceGroup:

       <xsd:complexType name="ejb-local-refType">
       <xsd:sequence>
       <xsd:element name="description" type="javaee:descriptionType" minOccurs="0"
       maxOccurs="unbounded"/>
       <xsd:element name="ejb-ref-name" type="javaee:ejb-ref-nameType" minOccurs="0"/>
      ...
       <xsd:group ref="jboss:resourceGroup"/>
       <xsd:element name="jndi-name" type="javaee:jndi-nameType" minOccurs="0"/>
       </xsd:sequence>
      
      ...
       <!-- Bring resourceGroup into jboss namespace -->
       <xsd:group name="resourceGroup">
       <xsd:sequence>
       <!-- In jboss xml we allow the use of jndi-name instead of mapped-name -->
       <xsd:choice>
       <xsd:element name="jndi-name" type="javaee:jndi-nameType"
       minOccurs="0" />
       <xsd:element name="mapped-name" type="javaee:xsdStringType"
       minOccurs="0" />
       </xsd:choice>
      


      It looks like the jndi-name should just be dropped and just the jboss:resourceGroup used.

      By the way, I use the http://www.oxygenxml.com/ plugin for eclipse that allows for validation and navigation of schemas very easily within the project if your looking for a good xml/xsd tool.