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

wildfly-jts-application-component-2 quickstart fails to validate in eclipse

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 10.0.0.CR2
    • None
    • None
    • None

      The above quickstart fails to validate in eclipse. It has the following lines in it:

      <jboss:ejb-jar xmlns:jboss="http://www.jboss.com/xml/ns/javaee"
                     xmlns="http://java.sun.com/xml/ns/javaee"
                     xmlns:iiop="urn:iiop"
                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                     xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-ejb3-2_0.xsd
                        http://java.sun.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-ejb3-spec-2_0.xsd
                        urn:iiop jboss-ejb-iiop_1_0.xsd"
                     version="3.1"
                     impl-version="2.0">
          <assembly-descriptor>
              <iiop:iiop>
                  <ejb-name>InvoiceManagerEJBImpl</ejb-name>
                  <iiop:binding-name>jts-quickstart/InvoiceManagerEJBImpl</iiop:binding-name>
              </iiop:iiop>
          </assembly-descriptor>
      </jboss:ejb-jar>
      

      The key line to note is:

                        urn:iiop jboss-ejb-iiop_1_0.xsd"
      

      Using relative paths cannot guarantee the resolution of a dependent schema. I suggest you replace this with:

      urn:iiop http://www.jboss.org/schema/jbossas/jboss-ejb-iiop_1_0.xsd"
      

      However, even once that is fixed, the quickstart still has other problems. For one example:

      cvc-complex-type.2.4.a: Invalid content was found starting with element 'iiop:iiop'. One of '{"http://
       java.sun.com/xml/ns/javaee":security-role, "http://java.sun.com/xml/ns/javaee":method-
       permission, "http://java.sun.com/xml/ns/javaee":container-transaction, "http://java.sun.com/xml/ns/
       javaee":interceptor-binding, "http://java.sun.com/xml/ns/javaee":message-destination, "http://
       java.sun.com/xml/ns/javaee":exclude-list, "http://java.sun.com/xml/ns/javaee":application-
       exception}' is expected.
      

      I strongly suggest someone test the quickstart in JBossTools and help come up with a descriptor that passes validation.

              jgreene@redhat.com Jason Greene
              rob.stryker Rob Stryker (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: