Hi,
I stumbled on a new problem, but that might be due to my newbieness on JAXB still.
The sip app.xsd
http://www.jcp.org/xml/ns/sipservlet/sip-app_1_1.xsd defines an element
called condition which is abstract and many elements such as and, or, equals ... that are
child of this condition (belong to the same substitutiongroup).
My corresponding mapping classes are available here :
http://mobicents.googlecode.com/svn/trunk/servers/sip-servlets/sip-servle...
http://mobicents.googlecode.com/svn/trunk/servers/sip-servlets/sip-servle...
http://mobicents.googlecode.com/svn/trunk/servers/sip-servlets/sip-servle...
When I try to load this sip.xml :
http://mobicents.googlecode.com/svn/trunk/servers/sip-servlets/sip-servle...
I get the following exception :
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: and not found as
a child of pattern
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
| at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
| at
org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:199)
| at
org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:170)
| at
org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:132)
| at
org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:118)
| at
org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:256)
| at
org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:188)
| at
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:323)
| ... 22 more
| Caused by: org.jboss.xb.binding.JBossXBRuntimeException: and not found as a child of
pattern
| at
org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:400)
| at
org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)
| 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:199)
| ... 30 more
| 17:25:41,319 INFO [TomcatConvergedDeployer]
vfsfile:/home/deruelle/servers/jboss-5.0.1.G
Any help would be appreciated on how to make the AndMetaData a child of ConditionMetaData
Thanks in advance
Best regards
Jean Deruelle
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227538#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...