Hi Yuan,I assume you are using Axis2/C binary version. If not, what are the compilation options you used to compile Axis2/C?
Can you check the version of c:\windows\system32\libeay32.dll and c:\windows\system32\libssl32.dll? You can right click it and get properties and then check the version tab.
we have not tested with openssl 0.9.8h. Theoritically it should work :) . Is it possible for you to try with OpenSSL 0.9.8d or 0.9.8e and see whether the problem exists? Then we can be sure whether the problem is openssl or something else and further investigate. Optionally, you can run Axis2/C through apache and try whether it works. You can get apache with Openssl 0.9.8e from [1]
Regards, Shankar.[1] http://archive.apache.org/dist/httpd/binaries/win32/apache_2.2.6-win32-x86-openssl-0.9.8e.msi
yuanhuhu wrote:
Hi,In order to isolate the problem, I tried the samples from rampart/c instead.Here is the PATH setting in my system: ---------------------------------------------- D:\Tools\axis2\axis2c-bin-1.4.0-win32\bin>echo %PATH% C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Tec hnologies\ATI.ACE\;D:\Tools\apache-maven-2.0.9\bin;C: \Program Files\Microsoft SQL Server\90\Tools\bin\;C:\OpenSSL\bin;D:\Sun\SDK\bin; C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Tec hnologies\ATI.ACE\;D:\Tools\apache-maven-2.0.9\bin;C: \Program Files\Microsoft SQL Server\90\Tools\bin\;C:\OpenSSL\bin;D:\Tools\axis2\ axis2c-bin-1.4.0-win32\lib;D:\Tools\axis2\axis2c-bin-1.4.0-win32\bin;C:\OpenSSL\ lib ---------------------------------------------- I first started the axis2_http_server.exe, and here is the axis2.log it generated: ---------------------------------------------- [Fri Jul 04 11:47:57 2008] [info] Starting Axis2 HTTP server.... [Fri Jul 04 11:47:57 2008] [info] Apache Axis2/C version in use : 1.4.0 [Fri Jul 04 11:47:57 2008] [info] Server port : 8080 [Fri Jul 04 11:47:57 2008] [info] Repo location : ../ [Fri Jul 04 11:47:57 2008] [info] Read Timeout : 60000 ms [Fri Jul 04 11:47:57 2008] [debug] ..\..\src\core\engine\phase.c(121) axis2_handler_t *request_uri_based_dispatcher added to the index 0 of the phase Transport [Fri Jul 04 11:47:57 2008] [debug] ..\..\src\core\engine\phase.c(121) axis2_handler_t *addressing_based_dispatcher added to the index 1 of the phase Transport [Fri Jul 04 11:47:57 2008] [debug] ..\..\src\core\engine\phase.c(121) axis2_handler_t *rest_dispatcher added to the index 0 of the phase Dispatch [Fri Jul 04 11:47:57 2008] [debug] ..\..\src\core\engine\phase.c(121) axis2_handler_t *soap_message_body_based_dispatcher added to the index 1 of the phase Dispatch [Fri Jul 04 11:47:57 2008] [debug] ..\..\src\core\engine\phase.c(121) axis2_handler_t *soap_action_based_dispatcher added to the index 2 of the phase Dispatch [Fri Jul 04 11:47:57 2008] [debug] ..\..\src\core\engine\phase.c(121) axis2_handler_t *dispatch_post_conditions_evaluator added to the index 0 of the phase PostDispatch [Fri Jul 04 11:47:57 2008] [debug] ..\..\src\core\engine\phase.c(121) axis2_handler_t *context_handler added to the index 1 of the phase PostDispatch [Fri Jul 04 11:47:57 2008] [debug] ..\..\src\core\deployment\conf_builder.c(233) No custom dispatching order found. Continue with the default dispatching order [Fri Jul 04 11:47:57 2008] [debug] ..\..\src\core\deployment\conf_builder.c(378) Module addressing found in axis2.xml [Fri Jul 04 11:47:57 2008] [debug] ..\..\src\core\deployment\conf_builder.c(378) Module rampart found in axis2.xml [Fri Jul 04 11:47:57 2008] [debug] ..\..\util\src\class_loader.c(141) Object loaded successfully [Fri Jul 04 11:47:57 2008] [debug] ..\..\util\src\class_loader.c(141) Object loaded successfully [Fri Jul 04 11:47:57 2008] [debug] ..\..\src\core\deployment\dep_engine.c(1306) axis2_dep_engine_load_module_dll: DLL path is : ..//modules/addressing/axis2_mod_addr.dll [Fri Jul 04 11:47:57 2008] [debug] ..\..\util\src\class_loader.c(141) Object loaded successfully [Fri Jul 04 11:47:57 2008] [debug] ..\..\src\core\deployment\dep_engine.c(1306) axis2_dep_engine_load_module_dll: DLL path is : ..//modules/logging/axis2_mod_log.dll [Fri Jul 04 11:47:57 2008] [debug] ..\..\util\src\class_loader.c(141) Object loaded successfully [Fri Jul 04 11:47:57 2008] [debug] ..\..\src\core\deployment\dep_engine.c(1306) axis2_dep_engine_load_module_dll: DLL path is : ..//modules/rampart/mod_rampart.dll [Fri Jul 04 11:47:57 2008] [error] ..\..\util\src\class_loader.c(161) dlerror reason: Something went wrong loading the DLL. If you happen to see this message, please note that getting the exact error form Windows is a TODO. And if possible please help fix it. :) [Fri Jul 04 11:47:57 2008] [error] ..\..\src\core\deployment\dep_engine.c(1424) Loading module description rampart failed [Fri Jul 04 11:47:57 2008] [error] ..\..\src\core\deployment\dep_engine.c(1588) Adding new module rampart to the deployment engine failed [Fri Jul 04 11:47:57 2008] [error] ..\..\src\core\deployment\repos_listener.c(136) Repository listener initialization failed [Fri Jul 04 11:47:57 2008] [error] ..\..\src\core\deployment\dep_engine.c(788) dep_engine repos listener creation failed, folder name is ../ [Fri Jul 04 11:47:57 2008] [error] ..\..\src\core\deployment\conf_init.c(64) Loading deployment engine failed for repository ../. [Fri Jul 04 11:47:57 2008] [error] ..\..\src\core\transport\http\receiver\http_receiver.c(127) unable to create private configuration contextfor repo path ../ [Fri Jul 04 11:47:57 2008] [error] ..\..\src\core\transport\http\server\simple_axis2_server\http_server_main.c(215) Server creation failed: Error code: 34 :: Repository listener initialization failed ---------------------------------------------- The sec_echo client for scenario 1 returns the following error: ---------------------------------------------- D:\Tools\axis2\rampartc-src-1.2.0\samples\client\sec_echo>update_n_run.bat "Copying latest module to client_repo" D:\Tools\axis2\axis2c-bin-1.4.0-win32\modules\rampart\module.xml D:\Tools\axis2\axis2c-bin-1.4.0-win32\modules\rampart\mod_rampart.dll 2 File(s) copied Using endpoint : http://localhost:9090/axis2/services/sec_echo/echoString Using client_home : D:\Tools\axis2\axis2c-bin-1.4.0-win32\client_repo client_home= D:\Tools\axis2\axis2c-bin-1.4.0-win32\client_repoError creating ser vice client ---------------------------------------------- And this is the contain in the echo.log: ------------------------------------------------- [Fri Jul 04 11:49:19 2008] [debug] ..\..\src\core\engine\phase.c(121) axis2_handler_t *request_uri_based_dispatcher added to the index 0 of the phase Transport [Fri Jul 04 11:49:19 2008] [debug] ..\..\src\core\engine\phase.c(121) axis2_handler_t *addressing_based_dispatcher added to the index 1 of the phase Transport [Fri Jul 04 11:49:19 2008] [debug] ..\..\src\core\engine\phase.c(121) axis2_handler_t *rest_dispatcher added to the index 0 of the phase Dispatch [Fri Jul 04 11:49:19 2008] [debug] ..\..\src\core\engine\phase.c(121) axis2_handler_t *soap_message_body_based_dispatcher added to the index 1 of the phase Dispatch [Fri Jul 04 11:49:19 2008] [debug] ..\..\src\core\engine\phase.c(121) axis2_handler_t *soap_action_based_dispatcher added to the index 2 of the phase Dispatch [Fri Jul 04 11:49:19 2008] [debug] ..\..\src\core\engine\phase.c(121) axis2_handler_t *dispatch_post_conditions_evaluator added to the index 0 of the phase PostDispatch [Fri Jul 04 11:49:19 2008] [debug] ..\..\src\core\engine\phase.c(121) axis2_handler_t *context_handler added to the index 1 of the phase PostDispatch [Fri Jul 04 11:49:19 2008] [debug] ..\..\src\core\deployment\conf_builder.c(233) No custom dispatching order found. Continue with the default dispatching order [Fri Jul 04 11:49:19 2008] [debug] ..\..\src\core\deployment\conf_builder.c(378) Module addressing found in axis2.xml [Fri Jul 04 11:49:19 2008] [debug] ..\..\src\core\deployment\conf_builder.c(378) Module rampart found in axis2.xml [Fri Jul 04 11:49:19 2008] [debug] ..\..\util\src\class_loader.c(141) Object loaded successfully [Fri Jul 04 11:49:19 2008] [debug] ..\..\util\src\class_loader.c(141) Object loaded successfully [Fri Jul 04 11:49:19 2008] [error] ..\..\util\src\dir_handler.c(219) No files in the path D:\Tools\axis2\axis2c-bin-1.4.0-win32\client_repo/services. [Fri Jul 04 11:49:19 2008] [debug] ..\..\src\core\deployment\dep_engine.c(1306) axis2_dep_engine_load_module_dll: DLL path is : D:\Tools\axis2\axis2c-bin-1.4.0-win32\client_repo/modules/addressing/axis2_mod_addr.dll [Fri Jul 04 11:49:19 2008] [debug] ..\..\util\src\class_loader.c(141) Object loaded successfully [Fri Jul 04 11:49:19 2008] [debug] ..\..\src\core\deployment\dep_engine.c(1306) axis2_dep_engine_load_module_dll: DLL path is : D:\Tools\axis2\axis2c-bin-1.4.0-win32\client_repo/modules/logging/axis2_mod_log.dll [Fri Jul 04 11:49:19 2008] [debug] ..\..\util\src\class_loader.c(141) Object loaded successfully [Fri Jul 04 11:49:19 2008] [debug] ..\..\src\core\deployment\dep_engine.c(1306) axis2_dep_engine_load_module_dll: DLL path is : D:\Tools\axis2\axis2c-bin-1.4.0-win32\client_repo/modules/rampart/mod_rampart.dll [Fri Jul 04 11:49:19 2008] [error] ..\..\util\src\class_loader.c(161) dlerror reason: Something went wrong loading the DLL. If you happen to see this message, please note that getting the exact error form Windows is a TODO. And if possible please help fix it. :) [Fri Jul 04 11:49:19 2008] [error] ..\..\src\core\deployment\dep_engine.c(1424) Loading module description rampart failed [Fri Jul 04 11:49:19 2008] [error] ..\..\src\core\deployment\dep_engine.c(1588) Adding new module rampart to the deployment engine failed [Fri Jul 04 11:49:19 2008] [error] ..\..\src\core\deployment\repos_listener.c(136) Repository listener initialization failed [Fri Jul 04 11:49:19 2008] [debug] ..\..\src\core\phaseresolver\phase_holder.c(139) Add handler AddressingInHandler to phase Transport [Fri Jul 04 11:49:19 2008] [debug] ..\..\src\core\deployment\dep_engine.c(1306) axis2_dep_engine_load_module_dll: DLL path is : D:\Tools\axis2\axis2c-bin-1.4.0-win32\client_repo/modules/rampart/mod_rampart.dll [Fri Jul 04 11:49:19 2008] [error] ..\..\util\src\class_loader.c(161) dlerror reason: Something went wrong loading the DLL. If you happen to see this message, please note that getting the exact error form Windows is a TODO. And if possible please help fix it. :) [Fri Jul 04 11:49:19 2008] [error] ..\..\src\core\deployment\dep_engine.c(1783) Loading module dll rampart failed [Fri Jul 04 11:49:19 2008] [error] ..\..\src\core\engine\conf.c(1585) Either module description not set or building module description failed for module rampart [Fri Jul 04 11:49:19 2008] [error] ..\..\src\core\deployment\dep_engine.c(1077) Engaging module rampart to Axis2 Configuration failed [Fri Jul 04 11:49:19 2008] [error] ..\..\src\core\deployment\dep_engine.c(993) Module engage failed for deployment engine [Fri Jul 04 11:49:19 2008] [error] ..\..\src\core\deployment\conf_init.c(195) Loading deployment engine failed for client repository D:\Tools\axis2\axis2c-bin-1.4.0-win32\client_repo ---------------------------------------------- Thanks! Yuan --- On Sat, 7/5/08, yuanhuhu <[EMAIL PROTECTED]> wrote:From: yuanhuhu <[EMAIL PROTECTED]> Subject: Re: Failed to load mod_rampart.dll To: "Apache AXIS C User List" <[email protected]> Date: Saturday, July 5, 2008, 12:45 AM Hi Shankar,This could also be a problem with openssl library.What isthe version of openssl you are using? Are you using rampart binary version or source version? If it is binary version, it was compiled with openssl 0.9.8d. So you have to have either that version or versionhigherthan that.I am using the rampart binary version. I have installed OpenSSL 0.9.8h on Windows XP. I have also added <OpenSSL installation path>/bin to PATH. I started my test client through VC++ 2005 express edition, would this cause trouble? I have copied all the files in C:\OpenSSL\lib\VC to <PATH to VisualStudio>\VC\lib. But I still have no luck. :( Thanks! YuanManjula Peiris wrote:Yuan, Please check the following. -Whether you have engaged Rampart eitherpragmaticallyfrom your clientcode or in your axis2.xml -Whether the Security phase is there in youraxis2.xml-Manjula. On Thu, 2008-07-03 at 15:52 -0700, yuanhuhuwrote:Hi, I am trying to add in authentication to myAxis2/cclient.I downloaded the latest rampart C 1.2 anddeployedto my axis2/c 1.4.I followed the samples from rampart C andaddedthe following lines to my Axis2/C client. Theclient_homepoints to my Axis2/C installation: D:\Tools\axis2\axis2c-bin-1.4.0-win32--------------------------------------------------------/*We need to specify the client'spolicyfile location*/if(client_home) { file_name = axutil_stracat(env,client_home,"\\client_repo\\");policy_file = axutil_stracat(env,file_name, "policy.xml" );AXIS2_FREE(env->allocator,file_name);file_name = NULL; }else{printf("Client Home notSpecified\n");printf("echo client invokeFAILED!\n");return 0; }/*Create the policy, from file*/ policy =neethi_util_create_policy_from_file(env, policy_file);if(policy_file){ AXIS2_FREE(env->allocator,policy_file);policy_file = NULL; } if(!policy) { printf("\nPolicy creationfailedfrom the file. %s\n", policy_file);} stub =axis2_stub_create_SecureServiceService(env,client_home,address);if( NULL == stub ){ printf("Unable to create the stub withaddress='%s' and client_home='%s'.\n", address, client_home);if (env) { axutil_env_free((axutil_env_t *) env); env = NULL; } exit(1); } svc_client = axis2_stub_get_svc_client(stub,env);options = axis2_stub_get_options( stub,env);if (NULL == options) { AXIS2_ERROR_SET(env->error,AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);AXIS2_LOG_ERROR(env->log,AXIS2_LOG_SI,"options is null in stub");return NULL; } axis2_options_set_manage_session(options,env,AXIS2_TRUE);status =axis2_svc_client_set_policy(svc_client, env, policy);if(status == AXIS2_FAILURE) { printf("Policy settingfailed\n");}--------------------------------------------------------The code seems to run smoothly, but Ican'tsee the security header appear in the client request.Itook at look at the log file generated and found thattherampart dll is not loaded correctly.---------------------------------------------------------------[Thu Jul 03 15:23:33 2008] [debug]..\..\src\core\deployment\dep_engine.c(1306)axis2_dep_engine_load_module_dll: DLL path is :D:\Tools\axis2\axis2c-bin-1.4.0-win32/modules/addressing/axis2_mod_addr.dll[Thu Jul 03 15:23:33 2008] [debug]..\..\util\src\class_loader.c(141)Objectloaded successfully[Thu Jul 03 15:23:33 2008] [debug]..\..\src\core\deployment\dep_engine.c(1306)axis2_dep_engine_load_module_dll: DLL path is :D:\Tools\axis2\axis2c-bin-1.4.0-win32/modules/logging/axis2_mod_log.dll[Thu Jul 03 15:23:33 2008] [debug]..\..\util\src\class_loader.c(141)Objectloaded successfully[Thu Jul 03 15:23:33 2008] [debug]..\..\src\core\deployment\dep_engine.c(1306)axis2_dep_engine_load_module_dll: DLL path is :D:\Tools\axis2\axis2c-bin-1.4.0-win32/modules/rampart/mod_rampart.dll[Thu Jul 03 15:23:33 2008] [error]..\..\util\src\class_loader.c(161)dlerrorreason: Something went wrong loading the DLL. If youhappento see this message, please note that getting theexacterror form Windows is a TODO. And if possible pleasehelpfix it. :)[Thu Jul 03 15:23:33 2008] [error]..\..\src\core\deployment\dep_engine.c(1424)Loading module description rampart failed[Thu Jul 03 15:23:33 2008] [error]..\..\src\core\deployment\dep_engine.c(1588)Adding new module rampart to the deployment enginefailed[Thu Jul 03 15:23:33 2008] [error]..\..\src\core\deployment\repos_listener.c(136)Repository listener initialization failed[Thu Jul 03 15:23:33 2008] [debug]..\..\src\core\phaseresolver\phase_holder.c(139)Add handler AddressingInHandler to phase Transport---------------------------------------------------------------I verified that the dll does exist in thepathindicated in the log file:D:\Tools\axis2\axis2c-bin-1.4.0-win32\modules\rampart>dirVolume in drive D is Data Volume Serial Number is 40CF-E9CF Directory ofD:\Tools\axis2\axis2c-bin-1.4.0-win32\modules\rampart07/03/2008 02:22 PM <DIR>.07/03/2008 02:22 PM <DIR>..09/19/2007 12:04 PM 515module.xml05/07/2008 05:13 PM 335,872mod_rampart.dll2 File(s) 336,387 bytes 2 Dir(s) 56,762,257,408 bytesfreeAny idea how to troubleshoot or workaroundtheproblem?Thanks! Yuan---------------------------------------------------------------------To unsubscribe, e-mail:[EMAIL PROTECTED]For additional commands, e-mail:[EMAIL PROTECTED]---------------------------------------------------------------------To unsubscribe, e-mail:[EMAIL PROTECTED]For additional commands, e-mail:[EMAIL PROTECTED]---------------------------------------------------------------------To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
