web-services - 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());
该类正在完美加载,但是在其中时,我尝试连接到服务它给了我以前的错误。请帮助解决这个问题。
解决方案
推荐阅读
- reactjs - 粘贴值后反应钩子表单验证不起作用
- c# - 使用 Ardalis.Specification 使用 Linq 语法查询 CosmosDb
- css - 如何在引导程序中的图标顶部添加徽章
- go - 如何使用 utl
- ios - 此地址已被修改。验证更改并重新提交
- java - Kotlin:如何明确指定 lambda 的实际类型?
- asp.net - 图形 API 在 ASP.Net 中工作,但在 Windows 服务中出现 DLL 汇编错误
- javascript - Javascript:将多个整数和整数范围的元素添加到数组中,而不添加范围本身
- .net - Azure、.Net、Cobertura - ##[警告]找到多个文件或目录匹配项
- java - JavaMail 客户端不会读取 Office365 上所有看不见的消息