[Design of JBossXB] - Re: JBossXB-2.0.0.CR5
by alex.loubyansky@jboss.com
It's not because there wildcards but because the properties order doesn't match the elements order in the schema. If I don't specify the propOrder then the properties will be processed in the following sequence:
key; descriptions; proxyFactoryConfig; class; proxyFactory; name; wildcard; invokerProxyBindingName; id; invokerMBean;
And this will be the sequence of the elements in the schema.
Now elements are parsed in this sequence:
start: invoker-proxy-binding
start: description
end: description
start: description
end: description
start: description
end: description
start: invoker-proxy-binding-name
end: invoker-proxy-binding-name
start: invoker-mbean
end: invoker-mbean
start: proxy-factory
UNRESOLVED: proxy-factory
end: proxy-factory
Everything after invoker-mbean is going to be wildcard content because we reached the last element in the sequence.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089046#4089046
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089046
17 years, 3 months
[Design of JBossXB] - container-configuration model group problem
by scott.stark@jboss.org
After I updated the ejb container config metadata I started seeing this new error:
anonymous wrote :
| Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to start {http://java.sun.com/xml/ns/javaee}description: the element is not repeatable, repeatable parent expected to be a model group but got element {http://www.jboss.com/xml/ns/javaee}container-configuration
| at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endRepeatableParent(SundayContentHandler.java:672)
| at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:311)
| 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)
| ... 23 more
| 1687 DEBUG [JBoss5xEverythingUnitTestCase] testEverything took 1672ms
| 1687 DEBUG [JBoss5xEverythingUnitTestCase] ==== Stopping testEverything ====
| 1687 DEBUG [JBoss5xEverythingUnitTestCase] ==== tornDown org.jboss.test.ejb.metadata.test.JBoss5xEverythingUnitTestCase ====
|
|
I originally saw this problem in the metadata project, but have copied the changes over to the jbossxb project so that the JBoss5xEverythingUnitTestCase shows the problem.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089014#4089014
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089014
17 years, 3 months