[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Generated Classes not found if they do not match any of (Repost)

adrian@jboss.org do-not-reply at jboss.com
Mon Mar 16 10:25:42 EDT 2009


"kabir.khan at jboss.com" wrote : "alex.loubyansky at jboss.com" wrote : So, valueObject is bound to a wildcard and {urn:jboss:classloading:1.0}capabilities should be resolved as its content. Perhaps, it cannot be.
  |   | Can you enable TRACE for org.jboss.xb?
  | The trace was too long, but Ales suggested offline I add @XmlRootElement to CapabilitiesMetaData.
  | 
  |   | @XmlType(name="capabilties", propOrder= {"capabilities"})
  |   | @XmlRootElement(name="capabilities", namespace="urn:jboss:classloading:1.0")
  |   | public class CapabilitiesMetaData implements Serializable, Cloneable
  |   | 
  | 

Yes, for JBossXB to resolve the XmlAnyElement you need to define the top
level elment for "capabilities".

But you shouldn't include the namespace, otherwise it won't version properly
when we reuse the class in urn:jboss-classloading:2.0

You also need to define it in the xsd for xml validation.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4218305#4218305

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4218305



More information about the jboss-dev-forums mailing list