Uploaded image for project: 'JBoss WFK 2'
  1. JBoss WFK 2
  2. WFK2-725

Custom components in components.xml yield XML validation problem in JBDS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.6.0.CR2
    • Fix Version/s: 2.7.0.GA
    • Component/s: Seam 2
    • Labels:
    • Environment:

      JBDS 8.0.0.Beta3

    • Target Release:
    • Affects:
      Release Notes
    • Release Notes Docs Status:
      Documented as Known Issue
    • Release Notes Text:
      Hide
      XML validation in Red Hat JBoss Developer Studio for a components.xml file containing custom Seam components which define their namespace using the @Namespace annotation results in an error message such as the following:

      cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'pay:payment-home'. components.xml

      There is no workaround at this time.
      Show
      XML validation in Red Hat JBoss Developer Studio for a components.xml file containing custom Seam components which define their namespace using the @Namespace annotation results in an error message such as the following: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'pay:payment-home'. components.xml There is no workaround at this time.

      Description

      For a components.xml file which contains custom components which define their namespace using the @Namespace annotation, JBDS shows XML Problems:

      src/main/java/org/jboss/seam/example/quartz/package-info.java

      @Namespace(value="http://jboss.org/schema/seam/examples/quartz")
      package org.jboss.seam.example.quartz;
       
      import org.jboss.seam.annotations.*;
      

      PaymentHome.java

      @Name("paymentHome")
      public class PaymentHome extends EntityHome<Payment> {
          ...
      

      components-test.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <components xmlns="http://jboss.org/schema/seam/components"
                  xmlns:pay="http://jboss.org/schema/seam/examples/quartz"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation=
                       "http://jboss.org/schema/seam/components http://jboss.org/schema/seam/components-2.3.xsd">
       
          <pay:payment-home name="paymentHome" 
                            new-instance="#{newPayment}" 
                            created-message="Created a new payment to #{newPayment.payee}" />
      ...
      </components>
      

      JBDS shows:

      cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'pay:payment-home'.
      components-test.xml
      /quartz-ejb/src/test/resources
      line 18
      XML Problem
      

      This does not happen when the schemaLocation of components is not included.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  manaRH Marek Novotny
                  Reporter:
                  rsmeral Ron Šmeral
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: