[jboss-jira] [JBoss JIRA] (WFLY-3189) Error validating jboss-ejb3.xml.
Michael Hauke (JIRA)
issues at jboss.org
Fri Sep 12 07:24:19 EDT 2014
[ https://issues.jboss.org/browse/WFLY-3189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13001800#comment-13001800 ]
Michael Hauke commented on WFLY-3189:
-------------------------------------
Hi Rob,
concerning "jboss-ejb-clustering_1_0.xsd": I wrote it myself. The name space "urn:clustering:1.0" in mentioned in the "jboss-ejb3.xml" reference (https://docs.jboss.org/author/display/AS71/jboss-ejb3.xml+Reference) but I couldn't find it anywhere, so I created it with the element shown in the "jboss-ejb3.xml", based on "jboss-ejb-security.xsd".
Concerning "jboss-ejb3-spec-2_0.xsd": I removed the "assembly-descriptor" element from complex type "jboss-ejb-jarType" because an element "assembly-descriptor" is already defined in the type "jboss-ejb-jarType" extends (which is "javaee:ejb-jarType"), and so adding it again is not allowed (at least that's what the XSD validator in Eclipse said).
I've noted this in the commit messages by the way (see for example https://github.com/mheitnrw/jbosstools-server/commit/f98ce341dcd99a0502f475aac704ecca049ed54a and https://github.com/mheitnrw/jbosstools-server/commit/b0c89dc679b4a2383da610847f34a340543b62e5).
> Error validating jboss-ejb3.xml.
> --------------------------------
>
> Key: WFLY-3189
> URL: https://issues.jboss.org/browse/WFLY-3189
> Project: WildFly
> Issue Type: Bug
> Components: EJB
> Affects Versions: 8.0.0.Final
> Environment: WildFly 8.0.0.Final
> Reporter: shinzey shinzey
> Assignee: David Lloyd
> Attachments: p.patch
>
>
> I'm trying to configure code completion for jboss-ejb3.xml with schema, but fail to do that due to the following validation error:
> {noformat}
> 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]
> {noformat}
> The jboss-ejb3.xml is quite simple:
> {code:xml}
> <?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>
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
More information about the jboss-jira
mailing list