[jbosstools-issues] [JBoss JIRA] (JBIDE-20536) Several quickstarts fail; jboss-ejb3-2_0.xsd cannot resolve jboss elements

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


Rob Stryker created JBIDE-20536:
-----------------------------------

             Summary: Several quickstarts fail; jboss-ejb3-2_0.xsd  cannot resolve jboss elements
                 Key: JBIDE-20536
                 URL: https://issues.jboss.org/browse/JBIDE-20536
             Project: Tools (JBoss Tools)
          Issue Type: Sub-task
          Components: server
            Reporter: Rob Stryker


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:

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

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:

{code}<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>
{code}

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. 






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


More information about the jbosstools-issues mailing list