[英]org.apache.axis2.AxisFault: The system is attempting to engage a module that is not available: rampart
[英]Caused by: org.apache.axis2.AxisFault: Unable to engage module : rampart
您对为 SOAP客户端应用程序设置 Axis2 和 Rampart 有任何了解吗?
我已经通过 Eclipse 将 Axis2 和 Rampart 的 jar 文件添加到构建路径中,并将 Rampart 的 jars 和 mar 文件处理到 Axis 的文件结构中。
我的 Axis/Rampart 设置有问题,但我不知道是什么……
这是所有日志让我继续:
com.good.gc10.Fault:无法在 com.good.gcTalk.GCSoapClient.(GCSoapClient.java:51) 处实例化 GCServiceStub,位于 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) 的城墙
您是否设置了配置上下文?
这个需要设置才能搞Rampart,还需要文件夹结构正确。 即在下面的示例中,您需要在 Axis2WithRampart 中有以下子文件夹:Conf、Resources、Modules
如果您使用 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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.