org.apache.cxf.interceptor.Fault: Could not instantiate service class com.mangoubiubiu.cxf.test.HelloWorld because it is an interface。

1 问题描述 (WebService + cxf)

webservice 调用出错 

org.apache.cxf.interceptor.Fault: Could not instantiate service class com.mangoubiubiu.cxf.test.HelloWorld because it is an interface。

2 解决方案

服务端放实现类(我之前报错放的接口。。。)

 org.apache.cxf.interceptor.Fault: Could not instantiate service class com.mangoubiubiu.cxf.test.HelloWorld because it is an interface。

 客户端放接口

org.apache.cxf.interceptor.Fault: Could not instantiate service class com.mangoubiubiu.cxf.test.HelloWorld because it is an interface。

3 success

org.apache.cxf.interceptor.Fault: Could not instantiate service class com.mangoubiubiu.cxf.test.HelloWorld because it is an interface。

 

org.apache.cxf.interceptor.Fault: Could not instantiate service class com.mangoubiubiu.cxf.test.HelloWorld because it is an interface。

上一篇:微信开发安卓虚拟键盘挡住输入框的问题


下一篇:jQuery