The exception is expected in this case since pattern's condition property is bound as
@XmlElementWrapper(name = "condition")
| @XmlElements( {
| @XmlElement(name = "and", type = AndMetaData.class),
| @XmlElement(name = "contains", type = ContainsMetaData.class),
| @XmlElement(name = "equal", type = EqualMetaData.class),
| @XmlElement(name = "exists", type = ExistsMetaData.class),
| @XmlElement(name = "not", type = NotMetaData.class),
| @XmlElement(name = "or", type = OrMetaData.class),
| @XmlElement(name = "subdomain-of", type = SubdomainOfMetaData.class)})
| public void setCondition(ConditionMetaData condition) {
| this.condition = condition;
| }
Remove wrapping condition element.
Unfortunately, XmlElementRef is not supported currently.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228139#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...