Unique Particle Attribution Error While trying to Validate jboss-ejb3.xml
vamsi2012 Sep 27, 2012 3:02 PMIn the Jboss-ejb3.xml,its trying to reference http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd something like this.
In the above,We are referencing both Schemas http://www.jboss.com/xml/ns/javaee jboss-ejb3-2_0.xsd (namespace is http://www.jboss.com/xml/ns/javaee ) and http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd (namespace is http://java.sun.com/xml/ns/javaee) under xsi:schemaLocation. jboss-ejb3-2_0.xsd inturn references jboss-ejb3-spec-2_0.xsd something like this
There is an ambiguity error or the Conflict that is Caused for the Element in both jboss-ejb3-spec-2_0.xsd and ejb-jar_3_1.xsd 1. jboss-ejb3-spec-2_0.xsd Defines the Defines the Element as below:
It references assembly-descriptor like this: 2. http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd Defines the Element something like this The assembly-descriptorType defines application-assembly information. The application-assembly information consists of the following parts: the definition of security roles, the definition of method permissions, the definition of transaction attributes for enterprise beans with container-managed transaction demarcation, the definition of interceptor bindings, a list of methods to be excluded from being invoked, and a list of exception types that should be treated as application exceptions. All the parts are optional in the sense that they are omitted if the lists represented by them are empty. Providing an assembly-descriptor in the deployment descriptor is optional for the ejb-jar or .war file producer. Because of the above Scenario when I am trying to Validate the XML ,I am getting the following error: cos-nonambig: "http://java.sun.com/xml/ns/javaee":assembly-descriptor and "http://java.sun.com/xml/ns/javaee":assembly-descriptor (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles. Attached are the 3 XSD Files. Could anyone help me resolve this.
-
jboss-ejb3-2_0.xsd.zip 1.0 KB
-
ejb-jar_3_1.xsd.zip 16.2 KB
-
jboss-ejb3-spec-2_0.xsd.zip 2.4 KB