我正在尝试请求使用WS Security并基于签名方法(私有公钥)的Web服务,因为我已经成功安装了wsf库,但是当我点击url时它会生成这些错误日志。
请求网址 http://localhost/wsf/samples/security/signing/client.php
RESPONSE Message = ws客户端创建失败
错误日志在wsf_c / logs中生成
[Fri Feb 3 15:00:23 2012] [error] class_loader.c(152)正在加载共享库/opt/lampp/htdocs/wsf/wsf_c/lib/libaxis2_http_receiver.so失败。 DLERROR IS /opt/lampp/htdocs/wsf/wsf_c/lib/libaxis2_http_receiver.so:无法打开共享对象文件:没有这样的文件或目录
[Fri Feb 3 15:00:23 2012] [error] conf_builder.c(1156) Transport receiver loading failed for libaxis2_http_receiver.so, unable to continue
[Fri Feb 3 15:00:23 2012] [error] conf_builder.c(263) Processing transport receivers failed, unable to continue
[Fri Feb 3 15:00:23 2012] [error] dep_engine.c(928) Populating Axis2 Configuration failed
[Fri Feb 3 15:00:23 2012] [error] conf_init.c(225) Loading deployment engine failed for client repository /opt/lampp/htdocs/wsf/wsf_c
[Fri Feb 3 15:03:01 2012] [error] class_loader.c(152) Loading shared library /opt/lampp/htdocs/wsf/wsf_c/lib/libaxis2_http_receiver.so Failed. DLERROR IS /opt/lampp/htdocs/wsf/wsf_c/lib/libaxis2_http_receiver.so: cannot open shared object file: No such file or directory
有人告诉我如何修复它谢谢
答案 0 :(得分:0)
我认为你的图书馆位置不对,(但它们可能对你的系统完全正确)
是否有其他样品适合您?
我正在使用Ubuntu 12.04并让它们进入
'/usr/lib/php5/20090626+lfs/wfc/lib'
您可能需要在php.ini中设置wfc.home指令
我在/etc/php5/conf.d/wsf.ini
中有以下内容
(我的Apache / php在启动时加载conf.d下的所有ini文件)
; configuration for php WSF module
extension=wsf.so
include_path=".:/usr/share/php:/home/haydn/Downloads/wso2/scripts"
[wsf]
wsf.home="/usr/lib/php5/20090626+lfs/wsf_c"
希望这有助于