解决CXF的msdl2java生成的继承service类的构造函数报错问题
来源:互联网 发布:网络商品直销流程 编辑:程序博客网 时间:2024/05/20 05:06
这是三个报错的构造函数:
//This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2 //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1 //compliant code instead. public IcpBusinessService(WebServiceFeature ... features) { super(WSDL_LOCATION, SERVICE, features); } //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2 //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1 //compliant code instead. public IcpBusinessService(URL wsdlLocation, WebServiceFeature ... features) { super(wsdlLocation, SERVICE, features); } //This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2 //API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1 //compliant code instead. public IcpBusinessService(URL wsdlLocation, QName serviceName, WebServiceFeature ... features) { super(wsdlLocation, serviceName, features); }
原因请参考:http://cxf.apache.org/docs/23-migration-guide.html 官方说明。 其不能正常编译通过是由于jax-ws2.2规约与java6冲突。 但程序又不能仅以java5来编译,故需要降低jax-ws规约版本,
可以这样处理: 执行命令wsdl2java -frontend jaxws21 http://192.168.18.24/web_service?wsdl
- 解决CXF的msdl2java生成的继承service类的构造函数报错问题
- 构造函数的继承问题
- 构造函数的继承问题
- JS原型链、继承的问题与解决:组合继承、借用构造函数(未完)
- Java构造函数的继承问题
- 高手讲解构造函数的继承问题
- 浅谈构造函数的继承问题
- PHP构造函数的继承问题
- 钻石继承的构造函数问题
- C++构造函数的继承问题
- C++构造函数的继承问题
- 关于构造函数继承的一些问题
- Java构造函数的继承问题
- 构造函数的继承
- 继承的构造函数
- 构造函数的继承
- 构造函数的继承
- 构造函数的继承
- http://download.csdn.net/detail/matrixhero/4645105 block 回调
- Android下如何通过JNI方法向上提供接口总结
- 程序员的处世之道
- hdu4281 状态压缩~MTSP最优值
- 【面试】求数组子序列的最大和
- 解决CXF的msdl2java生成的继承service类的构造函数报错问题
- Amethyst 2 Product Page
- (转)[Charset]UTF-8, UTF-16, UTF-16LE, UTF-16BE的区别
- Ajax(1):get请求
- img底部总是有空白
- cannot find crt1.o:错误解决方案
- oracle 自动增长数列
- Sicily 1193 Up the Stairs
- junit学习笔记(二):hamcrest和TestSuit