axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yuanhuhu <yuanh...@yahoo.com>
Subject Re: Failed to load mod_rampart.dll
Date Fri, 04 Jul 2008 18:02:41 GMT
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 <yuanhuhu@yahoo.com> wrote:

> From: yuanhuhu <yuanhuhu@yahoo.com>
> Subject: Re: Failed to load mod_rampart.dll
> To: "Apache AXIS C User List" <axis-c-user@ws.apache.org>
> Date: Saturday, July 5, 2008, 12:45 AM
> Hi Shankar,
> 
> > 
> > This could also be a problem with openssl library.
> What is
> > the 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 version
> higher
> > than 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!
> 
> Yuan
> 
> 
> 
> > 
> > Manjula Peiris wrote:
> > > Yuan,
> > >
> > > Please check the following.
> > > -Whether you have engaged Rampart either
> pragmatically
> > from your client
> > > code or in your axis2.xml
> > > -Whether the Security phase is there in your
> axis2.xml
> > 
> > >
> > > -Manjula.
> > >
> > >
> > > On Thu, 2008-07-03 at 15:52 -0700, yuanhuhu
> wrote:
> > >   
> > >> Hi,
> > >>
> > >> I am trying to add in authentication to my
> Axis2/c
> > client.
> > >> I downloaded the latest rampart C 1.2 and
> deployed
> > to my axis2/c 1.4.
> > >>
> > >> I followed the samples from rampart C and
> added
> > the following lines to my Axis2/C client.  The
> client_home
> > points to my Axis2/C installation:
> > D:\Tools\axis2\axis2c-bin-1.4.0-win32
> > >>
> >
> --------------------------------------------------------
> > >>     /*We need to specify the client's
> policy
> > file 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 not
> > Specified\n");
> > >>         printf("echo client invoke
> > FAILED!\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 creation
> failed
> > from the file. %s\n", policy_file);
> > >>     }
> > >>
> > >>
> > >> 	stub =
> > >>        
> > axis2_stub_create_SecureServiceService(env,
> client_home,
> > address);
> > >> 	if( NULL == stub ){
> > >> 		printf("Unable to create the stub with
> > address='%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 setting
> > failed\n");
> > >>     }
> > >>     
> > >>
> >
> --------------------------------------------------------
> > >> The code seems to run smoothly, but I
> can't
> > see the security header appear in the client request. 
> I
> > took at look at the log file generated and found that
> the
> > rampart 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)
> Object
> > loaded 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)
> Object
> > loaded 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)
> 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. :)
> > >> [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 engine
> failed
> > >> [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 the
> path
> > indicated in the log file:
> > >>
> > >>
> >
> D:\Tools\axis2\axis2c-bin-1.4.0-win32\modules\rampart>dir
> > >>  Volume in drive D is Data
> > >>  Volume Serial Number is 40CF-E9CF
> > >>
> > >>  Directory of
> >
> D:\Tools\axis2\axis2c-bin-1.4.0-win32\modules\rampart
> > >>
> > >> 07/03/2008  02:22 PM    <DIR>         
> .
> > >> 07/03/2008  02:22 PM    <DIR>         
> ..
> > >> 09/19/2007  12:04 PM               515
> module.xml
> > >> 05/07/2008  05:13 PM           335,872
> > mod_rampart.dll
> > >>                2 File(s)        336,387 bytes
> > >>                2 Dir(s)  56,762,257,408 bytes
> free
> > >>
> > >>
> > >>
> > >>
> > >> Any idea how to troubleshoot or workaround
> the
> > problem?
> > >>
> > >>
> > >> Thanks!
> > >>
> > >> Yuan
> > >>
> > >>
> > >>       
> > >>
> > >>
> >
> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail:
> > axis-c-user-unsubscribe@ws.apache.org
> > >> For additional commands, e-mail:
> > axis-c-user-help@ws.apache.org
> > >>
> > >>     
> > >
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > axis-c-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail:
> > axis-c-user-help@ws.apache.org
> > >
> > >
> > >
> > >   
> > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > axis-c-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail:
> > axis-c-user-help@ws.apache.org
> 
> 
>       
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail:
> axis-c-user-help@ws.apache.org


      

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Mime
View raw message