[Design of POJO Server] - Re: So what does unification mean for the ejb containers
by scott.stark@jboss.org
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#4095381
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095381
18 years, 5 months
[Design of JBossXB] - Re: XsdBinder status
by scott.stark@jboss.org
If you comment out the ejb-jar_2_1.xsd config line in JBoss50UnitTestCase.initResolver:
| public static SchemaBindingResolver initResolver()
| {
| DefaultSchemaResolver resolver = new DefaultSchemaResolver();
| //resolver.addClassBindingForLocation("ejb-jar_2_1.xsd", EjbJar21MetaData.class);
| ...
|
The EjbJar21Everything_testEverything.xml fails to parse with:
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/EjbJar21Everything_testEverything.xml@1258,56
| ...
| Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to start {http://java.sun.com/xml/ns/j2ee}ejb-relationship-role: the element is not repeatable, repeatable parent expected to be a model group but got element {http://java.sun.com/xml/ns/j2ee}ejb-relation
| at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endRepeatableParent(SundayContentHandler.java:695)
| at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:334)
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:402)
| at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
| at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
| at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
| at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
| at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
| at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
| at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
| at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:180)
| ... 21 more
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095369#4095369
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095369
18 years, 5 months