实验证明使用org.apache.struts.util.LabelValueBean封装后,通过remoteEJB调用该方法后,如果返回的对象其中存在经过org.apache.struts.util.LabelValueBean封装的对象,则会报错:
java.io.InvalidClassException: org.apache.struts.util.LabelValueBean; local class incompatible: stream classdesc serialVersionUID =.....
查看org.apache.struts.util.LabelValueBean后,发现确实没有指定serialVersionUID 随意还是不要在EJB中使用org.apache.struts.util.LabelValueBean进行封装为好。