Apache server fails to load axis2_http_sender.dll when wsf/php built with SSL enabled.

文章详细介绍了在使用Axis2/C与IIS结合部署时,遇到SSL相关问题的排查步骤及解决方案。通过安装OpenSSL、调整配置以及正确加载依赖库,最终成功解决了HTTP服务器初始化失败的问题。

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.


Axis2/C Windows binary package and OpenSSL

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:

#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken
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 IIS server error occurred 
An error occurred while initilizing Axis2/C.

Axis log file showed:

[error] ..\..\util\src\class_loader.c(167) Loading shared library C:\axis2c/lib/axis2_http_sender.dll Failed. DLERROR IS DLL Load Error 126: The specified module could not be found.

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

已经博主授权,源码转载自 https://pan.quark.cn/s/fb533687a163 《C++经典代码大全》是一部专门针对C++入门者的重要参考资料,其核心目标在于提供易于理解的C++编程范例,旨在协助新学者迅速领会C++语言的关键概念与技术要点。此压缩文件所包含的信息或许涵盖了从基础到高级的各类C++编程技巧,涉及面向对象编程中的类与对象、函数的应用、程序流程控制、数据结构设计、模板技术以及异常管理等多个关键领域。 1. **基础语法** - 变量声明与初始化:掌握如何声明并初始化不同数据类型的变量,例如整型(int)、浮点型(float)、字符型(char)等。 - 基本输入输出:学习运用`std::cin`和`std::cout`执行标准数据输入与输出操作。 - 控制流语句:熟练运用条件语句(if、if-else、switch-case)以及循环语句(for、while、do-while)来控制程序流程。 2. **类与对象** - 类的定义:学会如何构建类,包含其成员变量与成员函数的设定。 - 对象的创建与使用:掌握如何实例化对象,并经由对象访问类的成员函数。 - 封装:理解封装的理念,并学习使用private和public访问修饰符来保护数据。 - 构造函数与析构函数:掌握如何为类定义自定义的构造过程与析构过程。 3. **函数** - 函数的定义与调用:理解函数的功能与作用,以及如何进行函数的定义和调用。 - 函数参数:精通不同类型的参数传递方法,包括值传递和引用传递。 - 函数重载:学习在同一作用域内定义多个具有相同名称但参数列表不同的函数。 - 函数指针:了解函数指针的运用方法,及其在回调函数和模板中的应用场景。 4. **数组与字符串** -...
内容概要:本文研究了一种计及自适应预测修正的微电网模型预测控制(MPC)优化调度方法,并提供了Matlab代码实现。该方法针对微电网中风电出力等可再生能源的强不确定性,引入自适应预测修正机制,动态调整预测模型以提升短期功率预测精度,从而增强调度决策的准确性与系统运行的鲁棒性。研究构建了完整的MPC滚动优化框架,涵盖预测模型建立、多时间尺度优化求解、实时反馈校正等关键环节,实现了系统运行成本最小化、能源高效利用与功率平衡的多重目标。所提方法有效应对了负荷波动与新能源出力随机性带来的调度挑战,提升了微电网能量管理系统的智能化水平。; 适合人群:具备电力系统、自动化、控制理论或相关领域基础知识的研究生、科研人员及工程技术人员,尤其适合从事微电网优化、可再生能源集成、模型预测控制研究的专业人士,熟悉Matlab编程与优化算法者更佳。; 使用场景及目标:①应用于高比例可再生能源接入的微电网能量管理系统,提升调度方案的实时性与鲁棒性;②为不确定性环境下电力系统动态优化控制策略的研究提供仿真验证平台;③支持学术论文复现、科研课题攻关及实际工程项目的前期技术验证与方案预研。; 阅读建议:建议结合Matlab代码逐模块分析算法实现细节,重点关注预测模型构建与反馈修正机制的设计逻辑,通过调整风电出力、负荷需求等场景参数进行仿真实验,深入理解MPC在微电网调度中的滚动优化特性与自适应修正能力。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值