"thomas.diesler(a)jboss.com" wrote : @Alex
|
| I did as you suggested, but still get the same error
|
|
https://anonsvn.jboss.org/repos/jbossas/projects/jboss-osgi/trunk/bluepri...
JBossXB was never updated to look at fields so you need to move the @XmlElement(s) to the
getter.
It should be easy though to make JBossXB look at fields.
http://anonsvn.jboss.org/repos/common/jbossxb/trunk/src/main/java/org/jbo...
| // Create the handler
| -BeanInfo beanInfo = JBossXBBuilder.configuration.getBeanInfo(typeInfo);
| + BeanInfo beanInfo = JBossXBBuilder.configuration.getBeanInfo(typeInfo,
BeanAccessMode.ALL);
|
P.S. All metadata should be Serializable
P.S.2. You should be setting the property order on the type otherwise the parsing
won't match the schema - you get a random order of elements based on what
java.lang.reflect returns.
P.S.3. We already have the metadata for the bean stuff. Look at the spring-mc-int project
which maps the spring xml to mc metadata (or speak to Ales) - no point reinventing it
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240954#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...