Apache server fails to load axis2_http_sender.dll when wsf/php built with SSL enabled.
来源:互联网 发布:淘宝旺旺卖家版下载 编辑:程序博客网 时间:2024/05/16 09:10
Apache server fails to load axis2_http_sender.dll when wsf/php built with SSL enabled.
Error message in the wsf php client Log:
[Fri Sep 05 12:08:31 2008] [error] ..\..\util\src\class_loader.c(167) Loading shared library C:\wsfphp\wso2-wsf-php-bin-2.0.0-win32\wsf_c/lib/axis2_http_sender.dll Failed. DLERROR IS DLL Load Error 182:
[Fri Sep 05 12:08:31 2008] [error] ..\..\src\core\deployment\conf_builder.c(902) Transport sender is NULL for transport http, unable to continue
[Fri Sep 05 12:08:31 2008] [error] ..\..\src\core\deployment\conf_builder.c(261) Processing transport senders failed, unable to continue
[Fri Sep 05 12:08:31 2008] [error] ..\..\src\core\deployment\dep_engine.c(939) Populating Axis2 Configuration failed
[Fri Sep 05 12:08:31 2008] [error] ..\..\src\core\deployment\conf_init.c(195) Loading deployment engine failed for client repository C:\wsfphp\wso2-wsf-php-bin-2.0.0-win32\wsf_c
Steps to regenerate:
1. Install OpenSSL 0.9.8g from MSI
2. Install Apache server from apache_2.2.8-win32-x86-openssl-0.9.8g.msi
3. Build WSF/PHP with SSL enabled
4. Try running a sample
When we build wsf/php SSL disabled, everything works fine.
Problem occurs with Apache 2.2.6 and OpenSSL 0.9.8e as wel.
I deployed Axis2C (1.6.0, Windows binary distribution) on IIS 7.0 running on Windows Server 2008 but simple browser-based test (http://localhost/axis2/services) failed - I got HTTP error 500 in W3SVC log:
2011-08-24 09:02:53 ::1 GET /axis2/services - 80 - ::1 Mozilla/5.0+(compatible;+MSIE+9.0;+Windows+NT+6.0;+Trident/5.0) 500 0 0 421
Page in the browser displayed:
An error occurred while initilizing Axis2/C.
Axis log file showed:
I used Process Explorer to find Axis2C DLLs loaded by IIS working process and here they are:
axiom.dll
axis2_engine.dll
axis2_parser.dll
axutil.dll
guththila.dll
mod_axis2_iis.dll
neethi.dll
Some of these modules failed to load axis2_http_sender.dll. I tried to reload aforementioned URL in order to wake up w3wp.exe and make it load Axis2C modules. Process Monitor was filtering w3wp.exe events and I could see that w3wp failed to find libeay32.dll (QueryOpen would return NAME NOT FOUND for all locations listed in PATH environment variable). This dll is a part of OpenSSL and is not included in original Axi2C binary package. I downloaded OpenSSL and, just for a test, placed libeay32.dll in C:\axis2c\lib, where axis2_http_sender.dll resides. This time Process Monitor showed that ssleay32.dll could not be found. This file, just like libeay32, belongs to OpenSSL. I placed it in C:\axis2c\lib and repeated the test. Voila! I got the list of my services listed in the browser which proved that Axi2C was set properly.
Process Explorer now shows the complete list of Axis2C DLLs loaded by w3wp.exe:
axiom.dll
axis2_engine.dll
axis2_http_receiver.dll
axis2_http_sender.dll
axis2_mod_addr.dll
axis2_mod_log.dll
axis2_parser.dll
axutil.dll
guththila.dll
libeay32.dll
ssleay32.dll
mod_axis2_iis.dll
neethi.dll
Conclusion: Axis2C Windows distribution depends on OpenSSL DLLs which are not included in binary package which can be downloaded from Apache Axis2/C Releases page. OpenSSL must be installed separately. Unfortunately, this is not mentioned in Axis2/C manual.
Note: upon installing OpenSSL on your system, path to its binaries (e.g. c:\openssl\bin) should be added to PATH environment variable. Make sure you restart machine after changing environment variables as IIS gets them only upon restart - it does not lookup their update values!
Note: If OpenSSL support is not required, download Axis2C source and built it with OpenSSL disabled (--enable-openssl=no)
References and links:
Axis2/C built with SSL support. axis2_http_sender.dll fails to load
problems running default http server
axis2/c depending on openSSL
re-distribute openSSL dlls with AXIS2/c and patent issue
- Apache server fails to load axis2_http_sender.dll when wsf/php built with SSL enabled.
- Website fails to load when project open in VS 2013
- 解决apache配置php7时出现的Cannot load ../php-5.6.13/php5apache2_4.dll into server:
- sp_send_dbmail fails when query uses linked server
- What to do when apt-get fails
- PHP 中 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- SSMA Oracle to SQL Server data migration step fails with no explanation
- Apache提示错误Cannot load php5apache2_2.dll into server的
- Configuration to access by HTTPS with SSL in Apache HTTP
- Fails to build with protobuf 2.6.0
- Apache with SSL
- install apache with ssl
- Unable to load SQL Server OLEDB provide resource DLL错误
- Unable to load SQL Server OLEDB provide resource DLL错误
- Cannot load C:/php/php5apache2.dll into server[转]
- Cannot load C:/php/php5apache2.dll into server: 的解决办法
- Unable to load dynamic library 'c:/php/extensions/php_mssql.dll'
- How to set up tomcat with server authentication and client certificate authentication enabled
- java分组批量执行,发短信、创建Lucene索引(应用场景)
- ARM异常处理
- 动态代理模式
- c语言函数指针的理解与使用
- win7+虚拟机+开发板(网络互联设置)之三(ip设置注意事项)
- Apache server fails to load axis2_http_sender.dll when wsf/php built with SSL enabled.
- 随笔--骨骼动画的实现原理
- Ubuntu14.04搭建Oracle instantClient 11.2.0.4并配置cx_Oracle5.1.2
- 将代码托管到GitHub
- 杭电 oj 1002 A + B Problem II 记录
- 笔记91--WindowManager.LayoutParams应用之实现悬浮窗口
- 图最少着色问题
- 下拉列表Spinner的使用
- 项目迷途