[英]JAX-RPC com.sun.xml.rpc.client.BasicService Not Found
I'm trying to consume a JAX-RPC WSDL for first time.我第一次尝试使用 JAX-RPC WSDL。
Im using Netbeans 8 and Java 1.7, I also include in my Project Libraries JAX-RPC (JWSDP 1.6) which includes jaxrpc-impl.jar
(wich includes com.sun.xml.rpc.client.BasicService
)我使用 Netbeans 8 和 Java 1.7,我还包括在我的项目库 JAX-RPC(JWSDP 1.6)中,其中包括
jaxrpc-impl.jar
(包括com.sun.xml.rpc.client.BasicService
)
But I'm getting the error from Netbeans using Tomcat:但是我使用 Tomcat 从 Netbeans 收到错误消息:
public class CalculoService_Impl extends com.sun.xml.rpc.client.BasicService implements CalculoService {
This class is a generated class from the wsdl file with Netbeans这个类是使用 Netbeans 从 wsdl 文件生成的类
Any idea will be very appreciated.任何想法将不胜感激。
Ok, finally i got the answer好的,我终于得到了答案
The problem was that i have jaxrpc.jar duplicated in other project wich was into this new one, but other version without BasicService.问题是我在其他项目中复制了 jaxrpc.jar 到这个新项目中,但其他版本没有 BasicService。
I have replaced de library on the other project and everything works!我已经替换了另一个项目中的 de library,一切正常!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.