Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-3189

Error validating jboss-ejb3.xml.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 9.0.0.Beta1
    • 8.0.0.Final
    • EJB
    • None

      I'm trying to configure code completion for jboss-ejb3.xml with schema, but fail to do that due to the following validation error:

      src-resolve: Cannot resolve the name 'javaee:jboss-ejb-beanType' to a(n) 'type definition' component. [33]
      src-resolve: Cannot resolve the name 'javaee:jboss-ejb-jarType' to a(n) 'type definition' component. [35]
      src-resolve: Cannot resolve the name 'javaee:jboss-enterprise-beansType' to a(n) 'type definition' component. [37]
      src-resolve: Cannot resolve the name 'javaee:assembly-descriptor-entry' to a(n) 'element declaration' component. [35]
      src-resolve: Cannot resolve the name 'javaee:jboss-assembly-descriptor-bean-entryType' to a(n) 'type definition' component. [39]
      

      The jboss-ejb3.xml is quite simple:

      <?xml version="1.0" encoding="UTF-8"?>
      <jboss:ejb-jar version="3.1" impl-version="2.0"
                     xmlns="http://java.sun.com/xml/ns/javaee"
                     xmlns:jboss="http://www.jboss.com/xml/ns/javaee"
                     xmlns:s="urn:security:1.1"
                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd
                                         http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-ejb3-2_0.xsd">
          <assembly-descriptor>
              <s:security>
                  <ejb-name>*</ejb-name>
                  <s:security-domain>testsd</s:security-domain>
              </s:security>
          </assembly-descriptor>
      </jboss:ejb-jar>
      

              dlloyd@redhat.com David Lloyd
              shinzey shinzey shinzey (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: