ITeye博客

CXF下使用wsdl2java时报错的解决办法:Service(URL, QName, WebServiceFeature[]) is undefined

bluebreath · 2011-09-07 15:28 · CXF · 开源软件 · Markdown

原因:CXF2.4.2自带的jaxws版本为jax-ws2.2.而jdk1.6带的版本为2.1。

使用frontend让cxf用2.1的编译器编译类

wsdl2java -frontend jaxws21 -p com.moon.service http://localhost:8080/framework/services/helloWorldService?wsdl

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。