[jboss-dev] latest xb and mc-1.0.2

Alexey Loubyansky alex at jboss.com
Tue Oct 10 03:55:36 EDT 2006


Running jboss-4.0.5.CR1 with the latest XB snapshot revealed a problem. 
I haven't investigated the cause yet but it looks like a consequence of 
the global model group binding support Adrian added recently.
The error looks similar to the ones I fixed yesterday in the PojoServer 
testcase in the testsuite of the AS. I had to fix the SchemaBinding 
initialization in the test to make it work.

That means if you want to use the latest XB in the AS you will have to 
use the latest MC. This is going to affect the next WS release at least.

The error I got was

Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse 
source: jar:file:/E:/cvsroot/Branch_4_0/buil
d/output/jboss-4.0.5.CR1-ejb3/server/default/tmp/deploy/tmp13277jbossws.beans!/META-INF/jboss-beans.xml at 27,86
         at 
org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:164)
         at 
org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:112)
         at 
org.jboss.deployment.SchemaBindingSimpleSubDeployerSupport.parseMetaData(SchemaBindingSimpleSubDepl
oyerSupport.java:51)
         ... 71 more
Caused by: java.lang.ClassCastException: 
org.jboss.beans.metadata.plugins.AbstractPropertyMetaData
         at 
org.jboss.kernel.plugins.deployment.xml.BeanSchemaBinding$ValueMetaDataElementInterceptor.add(BeanS
chemaBinding.java:1242)
         at 
org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endElement(SundayContentHandler.java
:1011)
         at 
org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endElement(SundayContentHandler.java
:156)
         at 
org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.endElement(SaxJBossXBPars
er.java:295)
         at 
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
         at 
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown 
Source)
         at 
org.apache.xerces.xinclude.XIncludeHandler.emptyElement(Unknown Source)
         at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown 
Source)
         at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown 
So
urce)
         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:160)
         ... 73 more



More information about the jboss-development mailing list