[jbosstools-issues] [JBoss JIRA] (JBIDE-17860) Custom components in components.xml yield XML validation problem in JBDS in a Seam project

Alexey Kazakov (JIRA) issues at jboss.org
Mon Jul 14 16:32:30 EDT 2014


     [ https://issues.jboss.org/browse/JBIDE-17860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Kazakov updated JBIDE-17860:
-----------------------------------

    Fix Version/s: LATER
                       (was: 4.2.0.CR1)


> Custom components in components.xml yield XML validation problem in JBDS in a Seam project
> ------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-17860
>                 URL: https://issues.jboss.org/browse/JBIDE-17860
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: seam2
>         Environment: JBDS 8.0.0.Beta3
>            Reporter: Ron Šmeral
>            Assignee: Viacheslav Kabanovich
>             Fix For: LATER
>
>
> For a components.xml file which contains custom components which define their namespace using the {{@Namespace}} annotation, JBDS shows XML Problems:
> {code:java|title=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.*;
> {code}
> {code:java|title=PaymentHome.java}
> @Name("paymentHome")
> public class PaymentHome extends EntityHome<Payment> {
>     ...
> {code}
> {code:xml|title=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>
> {code}
> JBDS shows:
> {noformat}
> 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
> {noformat}
> This does not happen when the schemaLocation of components is not included.



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)



More information about the jbosstools-issues mailing list