【问题标题】:Caused by: org.apache.axis2.AxisFault: Unable to engage module : rampart引起:org.apache.axis2.AxisFault:无法接合模块:壁垒
【发布时间】:2012-05-22 00:32:45
【问题描述】:

您对为 SOAP 客户端 应用程序设置 Axis2 和 Rampart 有任何了解吗?

我已经通过 Eclipse 将 Axis2 和 Rampart 的 jar 文件添加到构建路径中,并将 Rampart 的 jar 和 mar 文件对应到 Axis 的文件结构中。

我在设置 Axis/Rampart 时出了点问题,但我不知道是什么……

这就是日志给我的所有内容:

com.good.gc10.Fault:无法实例化 GCServiceStub 在 com.good.gcTalk.GCSoapClient.(GCSoapClient.java:51) 在 com.good.gcTalk.GCTActivationPinHandler.main(GCTActivationPinHandler.java:34) 原因:org.apache.axis2.AxisFault:无法使用模块:壁垒 在 org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:363) 在 com.good.gcTalk.GCSoapClient.(GCSoapClient.java:45)

【问题讨论】:

  • 能解决这个问题吗?

标签: java eclipse apache soap axis2


【解决方案1】:

您是否设置了配置上下文?

这需要在您参与 Rampart 之前进行设置,您还需要正确设置文件夹结构。 即在下面的示例中,您需要在 Axis2WithRampart 中有以下子文件夹: 会议, 资源, 模块

如果您使用 Rampart & Axis 2 设置添加 log4j,您将获得更多信息记录。 如果您不确定,我可以告诉您如何操作。

enter configContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem("Axis2WithRampart/repository", null); 
//create the stub
stub = new MyRampartServiceStub(configContext,"http://localhost:8080/axis2/services/MyRampartService"); here

【讨论】:

  • 嗨,我遇到了同样的错误,你能告诉我更多关于如何加载壁垒模块的细节吗?我正在使用 Eclipse。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-02-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2010-11-01
相关资源
最近更新 更多