Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-20529 Master JIRA for XML Validation Problems
  3. JBIDE-20536

Several quickstarts fail; jboss-ejb3-2_0.xsd cannot resolve jboss elements

XMLWordPrintable

      Several errors fail with the following error message:

      Referenced file contains errors (file:/home/rob/code/fuseide/fuseide/targetplatform/target/org.fusesource.ide.targetplatform.target.repo/../../../../../jbtools/github/jbosstools-server/as/plugins/org.jboss.tools.as.catalog/schema/xsd/jboss-ejb3-2_0.xsd). For more information, right click on the message in the Problems View and select "Show Details..."

      The schema seems to fail to resolve any elements that have 'jboss' in them, for example:

       
        <xs:element name="enterprise-beans" type="javaee:jboss-enterprise-beansType"/>
      

      When looking at the entire xsd space, I see no attempt to reference or import any remote schema or any jboss schema url or namespace.

      The offending schema file is here:

      <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
                 targetNamespace="http://www.jboss.com/xml/ns/javaee"
                 xmlns="http://www.jboss.com/xml/ns/javaee"
                 xmlns:javaee="http://java.sun.com/xml/ns/javaee"
                 elementFormDefault="qualified"
                 attributeFormDefault="unqualified"
                 version="2.0">
         <!-- xs:import namespace="http://java.sun.com/xml/ns/javaee" schemaLocation="ejb-jar_3_1.xsd"/ -->
         <!-- xs:import namespace="http://java.sun.com/xml/ns/javaee" schemaLocation="http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd"/ -->
         <xs:import namespace="http://java.sun.com/xml/ns/javaee"/>
      
         <xs:element name="ejb" type="javaee:jboss-ejb-beanType"/>
      
         <xs:element name="ejb-jar" type="javaee:jboss-ejb-jarType"/>
      
         <xs:element name="enterprise-beans" type="javaee:jboss-enterprise-beansType"/>
      
         <xs:element name="destination-jndi-name" type="xs:string" />
      
         <xs:element name="distinct-name" type="xs:string">
             <xs:annotation>
                 <xs:documentation>
                     The distinct-name for this EJB module.
                 </xs:documentation>
             </xs:annotation>
         </xs:element>
      </xs:schema>
      

      Perhaps I'm not understanding xml enough, but I kinda agree with the validator here, in that there's no clear way to resolve any of the jboss-* elements.

              Unassigned Unassigned
              rob.stryker Rob Stryker (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: