I found a solution to this same problem today.
For some unfathomable reason (to me at least) you need the propOrder property on the
@XmlType annotation.
The culprit code from the Jboss src in class org.jboss.ws.metadata.umdm.FaultMetaData:
| String[] propertyNames = xmlType.propOrder();
| int propertyCount = propertyNames.length;
| propertyTypes = new Class[propertyCount];
| faultBeanProperties = new WrappedParameter[propertyCount];
| serviceExceptionGetters = new Method[propertyCount];
|
| for (int i = 0; i < propertyCount; i++)
| {
| String propertyName = propertyNames[\i];
| // extract property metadata from the fault bean
| try
| {
| PropertyDescriptor propertyDescriptor = new
PropertyDescriptor(propertyName, faultBean);
| ...
| }
| catch (IntrospectionException ie)
| {
| throw new WSException("Property '" + propertyName +
"' not found in fault bean '" + faultBeanName + "'", ie);
| }
| ...
| }
Someone ought to log a JIRA issue or submit a patch. I'm a little too lazy for that.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4206729#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...