login button

unable to run ws-samples: "libaxis2_receivers.so" is missing

Forums :

Hello,

i build "apache", "php" and "wso2 wsf/php" from source. Everything works fine. But if i call the sample-services i got some errors:

1.) Echo service, accepts a payload and returns the same. Two way (in-out) sample.

1.1.) Link "WSDL"

-> Warning: WSService::reply(wsf.php) [wsservice.reply]: failed to open stream: No such file or directory in /opt/apache/httpd-2.0.63/htdocs/wsf/samples/echo_service.php on line 41

1.2.) Link "Run client"

-> Message = Error , NO Response Received

 

LOG-files

The "wsf_php_server.log" is empty. The "wsf_php_client.log" contains the following lines:

[Mon Jun  2 00:40:05 2008] [error] dir_handler.c(219) No files in the path /path/to/wso2-wsf-php-src-1.3.1/services.
[Mon Jun  2 00:40:05 2008] [error] class_loader.c(161) dlerror reason: /path/to/wso2-wsf-php-src-1.3.1/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
[Mon Jun  2 00:40:05 2008] [error] class_loader.c(161) dlerror reason: /path/to/wso2-wsf-php-src-1.3.1/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
[Mon Jun  2 00:40:05 2008] [info]  [rampart][rampart_mod] rampart_mod initialized
[Mon Jun  2 00:40:05 2008] [info]  Starting addressing out handler
[Mon Jun  2 00:40:05 2008] [error] http_sender.c(1399) Error occurred in transport
[Mon Jun  2 00:40:05 2008] [error] engine.c(179) Transport sender invoke failed
[Mon Jun  2 00:40:05 2008] [error] /path/to/src/wso2-wsf-php-src-1.3.1/src/wsf_client.c(1474) Response Payload NULL( Error number and code) => : 74 :: Error occurred in transport
[Mon Jun  2 00:40:05 2008] [info]  [rampart][rampart_mod] rampart_mod shutdown

 

Searching for the file "libaxis2_receivers.so" failed. Everything i found are the following files:

/path/to/src/wso2-wsf-php-src-1.3.1/wsf_c/axis2c/src/core/receivers/libaxis2_receivers.la
/path/to/src/wso2-wsf-php-src-1.3.1/wsf_c/axis2c/src/core/receivers/.libs/libaxis2_receivers.a

 

Used environment

user:host> uname -a
Linux host 2.6.22.17-0.1-default #1 SMP 2008/02/10 20:01:04 UTC x86_64 x86_64 x86_64 GNU/Linux

user:host> /path/to/httpd-2.0.63/bin/apachectl -version
Server version: Apache/2.0.63
Server built:   Jun  1 2008 22:14:58

user:host> /path/to/php-5.2.6/bin/php -version
PHP 5.2.6 (cli) (built: Jun  1 2008 23:06:40)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

Question

What i have to do to run the samples correctly?

 

regards

rig

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: Unable to run samples

Hi

When you do

 $ ./configure   

$ make

$ make install

the compiled binaries will be copied to your php extensions directory. Usually this will be located inside /usr/local/lib/php/ directory. Please check whether the binaries are copied there. Usually WSF/PHP picks the binary locations of wsf_c relative to the php extensions directory. If you have it installed some where else, then you may need to manually set the WSF/PHP configuration entries wsf.home in php.ini.

Also make sure the add the scripts directory that comes with WSF/PHP to you php.ini's include path entry.

I think this should fix the issue you are having.

-- Nandika

ok it is working, but...

I reinstalled everything by doing the following steps

1.) download "httpd-2.0.63.tar.gz", "php-5.2.6.tar.gz" and "wso2-wsf-php-src-1.3.1.tar.gz"
2.) unzip this files in /usr/local/src
3.) do the following steps
. $ cd /usr/local/src/httpd-2.0.63
. $ ./configure --prefix /usr/local --enable-info --enable-so --enable-rewrite
. $ make
. $ make intall
. $ cd /usr/local/src/php-5.2.6
. $ ./configure --prefix=/usr/local --with-apxs2=/usr/local/bin/apxs --with-xsl
. $ make
. $ make intall
. $ cp php.ini-dist /usr/local/lib/php.ini
. $ cd /usr/local/wso2-wsf-php-src-1.3.1
. $ ./configure --prefix=/usr/local --with-php-config=/usr/local/bin/php-config
. $ make
. $ make install
4.) insert "AddType application/x-httpd-php .php" in "/usr/local/conf/httpd.conf"
5.) change "extension_dir" to "/usr/local/lib/php/extensions/no-debug-non-zts-20060613/" in file "/usr/local/lib/php.ini"
6.) insert "extension=wsf.so" in "/usr/local/lib/php.ini"
7.) append the following lines in "/usr/local/lib/php.ini"
. [wsf]
. wsf.home="/usr/local"
. wsf.log_level=3
8.) copy all samples from wso-dir to htdocs-dir
. $ cd /usr/local/htdocs
. $ cp -Rv ../src/wso2-wsf-php-src-1.3.1/samples .
9.) start apache-httpd-server
. $ cd /usr/local/bin
. $ ./apachectl start

Then i started my browser and opened the url "http://localhost/samples/". I tried all "Basic functionalities"-Clients and everything works ok.

--B--U--T-- i got some erros in the log-files:

$ cat /tmp/wsf_php_server.log | grep -v info
. [Tue Jun 3 02:20:22 2008] [error] dir_handler.c(219) No files in the path /usr/local/services.
. [Tue Jun 3 02:20:22 2008] [error] class_loader.c(161) dlerror reason: /usr/local/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
. [Tue Jun 3 02:20:22 2008] [error] class_loader.c(161) dlerror reason: /usr/local/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
. [Tue Jun 3 02:21:13 2008] [warning] op.c(1149) Message id not found for message context while registering operation context for operation echoString
. [Tue Jun 3 02:21:21 2008] [warning] op.c(1149) Message id not found for message context while registering operation context for operation notifyString
. [Tue Jun 3 02:21:21 2008] [error] /usr/local/src/wso2-wsf-php-src-1.3.1/src/wsf_xml_msg_recv.c(903) Response Payload is NULL
. [Tue Jun 3 02:21:38 2008] [warning] op.c(1149) Message id not found for message context while registering operation context for operation getFault
. [Tue Jun 3 02:21:38 2008] [error] /usr/local/src/wso2-wsf-php-src-1.3.1/src/wsf_xml_msg_recv.c(903) Response Payload is NULL
. [Tue Jun 3 02:21:49 2008] [warning] op.c(1149) Message id not found for message context while registering operation context for operation echoString
. [Tue Jun 3 02:21:56 2008] [warning] op.c(1149) Message id not found for message context while registering operation context for operation add
. [Tue Jun 3 02:21:58 2008] [warning] op.c(1149) Message id not found for message context while registering operation context for operation sub
. [Tue Jun 3 02:22:01 2008] [warning] op.c(1149) Message id not found for message context while registering operation context for operation mul
. [Tue Jun 3 02:22:03 2008] [warning] op.c(1149) Message id not found for message context while registering operation context for operation div

$ cat /tmp/wsf_php_client.log | grep -v info
. [Tue Jun 3 02:21:13 2008] [error] dir_handler.c(219) No files in the path /usr/local/services.
. [Tue Jun 3 02:21:13 2008] [error] class_loader.c(161) dlerror reason: /usr/local/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
. [Tue Jun 3 02:21:13 2008] [error] class_loader.c(161) dlerror reason: /usr/local/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
. [Tue Jun 3 02:21:18 2008] [error] dir_handler.c(219) No files in the path /usr/local/services.
. [Tue Jun 3 02:21:18 2008] [error] class_loader.c(161) dlerror reason: /usr/local/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
. [Tue Jun 3 02:21:18 2008] [error] class_loader.c(161) dlerror reason: /usr/local/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
. [Tue Jun 3 02:21:19 2008] [error] dir_handler.c(219) No files in the path /usr/local/services.
. [Tue Jun 3 02:21:19 2008] [error] class_loader.c(161) dlerror reason: /usr/local/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
. [Tue Jun 3 02:21:19 2008] [error] class_loader.c(161) dlerror reason: /usr/local/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
. [Tue Jun 3 02:21:20 2008] [error] dir_handler.c(219) No files in the path /usr/local/services.
. [Tue Jun 3 02:21:20 2008] [error] class_loader.c(161) dlerror reason: /usr/local/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
. [Tue Jun 3 02:21:20 2008] [error] class_loader.c(161) dlerror reason: /usr/local/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
. [Tue Jun 3 02:21:21 2008] [error] dir_handler.c(219) No files in the path /usr/local/services.
. [Tue Jun 3 02:21:21 2008] [error] class_loader.c(161) dlerror reason: /usr/local/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
. [Tue Jun 3 02:21:21 2008] [error] class_loader.c(161) dlerror reason: /usr/local/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
. [Tue Jun 3 02:21:38 2008] [error] dir_handler.c(219) No files in the path /usr/local/services.
. [Tue Jun 3 02:21:38 2008] [error] class_loader.c(161) dlerror reason: /usr/local/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
. [Tue Jun 3 02:21:38 2008] [error] class_loader.c(161) dlerror reason: /usr/local/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
. [Tue Jun 3 02:21:38 2008] [error] http_sender.c(1367) Error occurred in transport
. [Tue Jun 3 02:21:49 2008] [error] dir_handler.c(219) No files in the path /usr/local/services.
. [Tue Jun 3 02:21:49 2008] [error] class_loader.c(161) dlerror reason: /usr/local/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
. [Tue Jun 3 02:21:49 2008] [error] class_loader.c(161) dlerror reason: /usr/local/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
. [Tue Jun 3 02:21:51 2008] [error] dir_handler.c(219) No files in the path /usr/local/services.
. [Tue Jun 3 02:21:51 2008] [error] class_loader.c(161) dlerror reason: /usr/local/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
. [Tue Jun 3 02:21:51 2008] [error] class_loader.c(161) dlerror reason: /usr/local/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
. [Tue Jun 3 02:21:56 2008] [error] dir_handler.c(219) No files in the path /usr/local/services.
. [Tue Jun 3 02:21:56 2008] [error] class_loader.c(161) dlerror reason: /usr/local/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
. [Tue Jun 3 02:21:56 2008] [error] class_loader.c(161) dlerror reason: /usr/local/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
. [Tue Jun 3 02:21:58 2008] [error] dir_handler.c(219) No files in the path /usr/local/services.
. [Tue Jun 3 02:21:58 2008] [error] class_loader.c(161) dlerror reason: /usr/local/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
. [Tue Jun 3 02:21:58 2008] [error] class_loader.c(161) dlerror reason: /usr/local/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
. [Tue Jun 3 02:22:01 2008] [error] dir_handler.c(219) No files in the path /usr/local/services.
. [Tue Jun 3 02:22:01 2008] [error] class_loader.c(161) dlerror reason: /usr/local/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
. [Tue Jun 3 02:22:01 2008] [error] class_loader.c(161) dlerror reason: /usr/local/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
. [Tue Jun 3 02:22:03 2008] [error] dir_handler.c(219) No files in the path /usr/local/services.
. [Tue Jun 3 02:22:03 2008] [error] class_loader.c(161) dlerror reason: /usr/local/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
. [Tue Jun 3 02:22:03 2008] [error] class_loader.c(161) dlerror reason: /usr/local/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory

--A--N--D-- when i call "http://localhost/samples/echo_service.php", then only a part of all deployed services are displayed and the name of each service is wrong. for expample a service called "samples_echo_service.php" is listed, but i think "samples/echo_service.php" is the correct name.

kind regards
rig

...still got these errors...

Hello,

i use "WSO2 Web Services Framework for PHP" only on clientside. Calling web services works fine. BUT i still got the following erros in "/tmp/wsf_php_client.log":

1.) calling a simple web service via http
... [Wed Jun 25 01:34:04 2008] [error] dir_handler.c(219) No files in the path /opt/TEST/client/services.
... [Wed Jun 25 01:34:04 2008] [error] class_loader.c(161) dlerror reason: /opt/TEST/client/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
... [Wed Jun 25 01:34:04 2008] [error] class_loader.c(161) dlerror reason: /opt/TEST/client/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
... [Wed Jun 25 01:34:04 2008] [info] [rampart][rampart_mod] rampart_mod initialized
... [Wed Jun 25 01:34:04 2008] [info] wsf_wsdl.php
... [Wed Jun 25 01:34:04 2008] [info] Starting addressing out handler
... [Wed Jun 25 01:34:04 2008] [info] Starting addressing in handler
... [Wed Jun 25 01:34:04 2008] [info] [rampart][rampart_mod] rampart_mod shutdown

2.) calling a simple web service via https
... [Wed Jun 25 01:33:11 2008] [error] dir_handler.c(219) No files in the path /opt/TEST/client/services.
... [Wed Jun 25 01:33:11 2008] [error] class_loader.c(161) dlerror reason: /opt/TEST/client/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
... [Wed Jun 25 01:33:11 2008] [error] class_loader.c(161) dlerror reason: /opt/TEST/client/lib/libaxis2_receivers.so: cannot open shared object file: No such file or directory
... [Wed Jun 25 01:33:11 2008] [info] [rampart][rampart_mod] rampart_mod initialized
... [Wed Jun 25 01:33:11 2008] [info] wsf_wsdl.php
... [Wed Jun 25 01:33:11 2008] [info] Starting addressing out handler
... [Wed Jun 25 01:33:11 2008] [info] [ssl client] Client certificate chain filenot specified
... [Wed Jun 25 01:33:11 2008] [info] Starting addressing in handler
... [Wed Jun 25 01:33:11 2008] [info] [rampart][rampart_mod] rampart_mod shutdown

...and i don't like error messages in log files of productive environments :-)

regards
rig

PS: new captcha is very very hard to read

Re: ...still got these errors...

Hi,
This error message comes due to an unwanted line in a configuration file. We have fixed this issue in the current svn. You can remove this error log message by removing the following line in the module.xml file located in wsf_c/modules/sandesha2 directory.

<messageReceiver class="axis2_receivers"/>

Regards
Nandika

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.