首页 > 解决方案 > java.lang.IllegalArgumentException:接口 org.apache.cxf.endpoint.Client 在类加载器中不可见

问题描述

我使用 apache CXF wsdl2Java 命令实现了一个 WSDL Soap 服务。该服务已发布并且运行良好,但是当我尝试通过在 Wildfly 中部署的战争中的客户端连接到该服务时,我收到错误“java.lang.IllegalArgumentException: interface org.apache.cxf.endpoint.Client is从类加载器中看不到”。实际调用服务的类是使用加载的

CuInterface cuInterface = (CuInterface)Class.forName("com.example.CuImpl", true, this.getClass().getClassLoader());

该类正在完美加载,但是在其中时,我尝试连接到服务它给了我以前的错误。请帮助解决这个问题。

标签: web-servicessoapcxfwildflyjax-ws

解决方案


推荐阅读