With the schema validation turned on, parsing jboss5.xml docs is failing because of the
attribute use restriction:
anonymous wrote :
| org.jboss.xb.binding.JBossXBException: Failed to parse source:
file:/home/svn/JBossHead/projects/metadata/trunk/target/eclipse-classes/org/jboss/test/metadata/ejb/JBoss5xEverything_testStandard.xml@9,22
| ...
| Caused by: org.xml.sax.SAXException: cvc-complex-type.3.1: Value '5.0' of
attribute 'version' of element 'jboss' is not valid with respect to the
corresponding attribute use. Attribute 'version' has a fixed value of
'3.0'. @
file:/home/svn/JBossHead/projects/metadata/trunk/target/eclipse-classes/org/jboss/test/metadata/ejb/JBoss5xEverything_testStandard.xml[9,22]
| at
org.jboss.xb.binding.parser.sax.SaxJBossXBParser$MetaDataErrorHandler.error(SaxJBossXBParser.java:427)
| at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
| ...
|
Both the online and jboss-metadata jboss_5_0.xsd have a fixed value for the version:
| <xsd:attribute name="version"
type="javaee:dewey-versionType" fixed="3.0"
use="required">
| <xsd:annotation>
| <xsd:documentation> The version specifies the version of the EJB
specification that the
| instance document must comply with. This information enables deployment
tools to validate
| a particular EJB Deployment Descriptor with respect to a specific
version of the EJB
| schema. </xsd:documentation>
| </xsd:annotation>
| </xsd:attribute>
|
I don't see the reason for restricting this? A jboss5 jboss.xml doc should be
applicable to anything from jbossas5.0 - jbossas3.0.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095381#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...