[解决]Marshalling Error: class XXX nor any of its super class is known to this context
来源:互联网 发布:linux fork函数 编辑:程序博客网 时间:2024/05/21 13:54
调试CXF的时候出现
javax.xml.ws.soap.SOAPFaultException: Marshalling Error: class XXX nor any of its super class is known to this context.
解决方式:
在WebService接口上添加:
@XmlSeeAlso({XXX.class})
缺点是在每个WebService接口上都要添加这个annotation, 不知道有没有更好的办法..
有的话回个贴..
补充:
在实体类上添加 @XmlType 解决UnmarshalException: unrecognized type name
参考文章:
http://www.javabeat.net/jaxb-exception-nor-any-of-its-super-class-is-known-to-this-context/
快照:
http://www.piaocafe.com/33961960/1386588138072482
- [解决]Marshalling Error: class XXX nor any of its super class is known to this context
- webservice开发中的nor any of its super class is known to this context错误解决
- javax.xml.bind.JAXBException: JAXBContextImpl nor any of its super class is known to this context
- JAXB转XML: 错误 class nor any of its super class is known to this 的处理
- JAXB转XML: 错误 class nor any of its super class is known to this 的处理
- Marshalling Error: XXXX is not known to this context
- org.apache.cxf.interceptor.Fault: Marshalling Error: XXXX is not known to this context
- error: ‘class QObject QObject::QObject’ is inaccessible within this context
- 解决Can't find common super class of [android/app/Application] (with 4 known super classes) and [com/m
- Error configuring application listener of class xxx
- The resolution of ERROR C2662: cannot convert 'this' pointer from "const Class-Type" to "Class&"
- Context namespace element xxx and its parser class [org.springframework.context.annotat Dubbo
- runtime modeler error: Wrapper class XXX is not found. Have you run APT to generate them
- Subscriber class xxx.xxx.xxx and its super classes have no public methods with the@Subscribe annotat
- Subscriber class xxx.xxx.xxx and its super classes have no public methods with the@Subscribe annotat
- 解决MySQL ERROR 1130 (HY000): Host 'XXX' is not allowed to connect to this MySQL server
- 解决 e.g. x.new A() where x is an instance of xxx.class
- 【解决】SSH问题(6)Error configuring application listener of class org.springframework.web.context
- android viewholder
- 常用的js脚本验证
- Boa服务器移植到FS_S5PC100开发板
- 以正确的方式开源 Python 项目
- C指针原理(6)
- [解决]Marshalling Error: class XXX nor any of its super class is known to this context
- db2错误笔记
- assert()函数用法总结
- java System类
- 二分查找
- jQuery
- OpenCV(3)-视频播放控制
- Eclipse + ndk+ cocos2dx 调试Cocos2dx 程序
- 软件工程实验报告 二