0

我正在测试 WSO2 示例 100(WS-Security 示例):http : //wso2.org/project/esb/java/4.0.3/docs/samples/qos_mediation_samples.html,并将 SecureStockQuoteService.aar 部署到 WSO2-AS。

但是当我运行这个示例(shell>> ant stockquote -Dtrpurl=http://localhost:8280/)时,WSO2-AS 会抛出“java.lang.ClassNotFoundException:samples.userguide.PWCallback”。

我应该将 samples.userguide.PWCallback API 部署到 WSO2-AS,怎么做?


  1. 如果您使用的是 JDK 1.6+,则将 JCE JAR 1.5 恢复到 JDK 主页
  2. 构建并部署 SecureStockQuoteService.aar 到 AS 服务器
  3. 通过ant运行客户端,然后AS抛出异常:

    java.lang.ClassNotFoundException:samples.userguide.PWCallback


我尝试通过以下命令使用axis2服务器运行示例:...esb\samples\axis2Server>axis2server.bat。我收到了这些信息:

Unable to locate a Wrapper executable using any of the following names:
  ...\axis2..\..\bin\native\wrapper-windows-x86-32.exe
  ...\axis2..\..\bin\native\wrapper-windows-x86-64.exe

这个错误怎么解决??

4

1 回答 1

1

如果要在 AS 中部署 Sample 服务,还需要部署所有其他依赖项。如果没有,您可以简单地启动提供的axis2server并运行示例。

于 2012-10-24T04:46:22.590 回答