axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r376606 - in /webservices/axis2/trunk/c/modules/core: deployment/module_builder.c phaseresolver/phase_holder.c
Date Fri, 10 Feb 2006 09:22:45 GMT
Author: samisa
Date: Fri Feb 10 01:22:42 2006
New Revision: 376606

URL: http://svn.apache.org/viewcvs?rev=376606&view=rev
Log:
Some fixes to get the addressing module working. Added tracing to help find problems

Modified:
    webservices/axis2/trunk/c/modules/core/deployment/module_builder.c
    webservices/axis2/trunk/c/modules/core/phaseresolver/phase_holder.c

Modified: webservices/axis2/trunk/c/modules/core/deployment/module_builder.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/deployment/module_builder.c?rev=376606&r1=376605&r2=376606&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/deployment/module_builder.c (original)
+++ webservices/axis2/trunk/c/modules/core/deployment/module_builder.c Fri Feb 10 01:22:42
2006
@@ -173,6 +173,8 @@
     int i = 0;
     axis2_status_t status = AXIS2_FAILURE;
     
+    AXIS2_LOG_TRACE((*env)->log, AXIS2_LOG_SI, "axis2_module_builder_populate_module start");
+    
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     builder_impl = AXIS2_INTF_TO_IMPL(module_builder);
     
@@ -195,6 +197,7 @@
         module_name = AXIS2_OM_ATTRIBUTE_GET_VALUE(module_name_att, env);
         if(NULL != module_name && (0 != AXIS2_STRCMP("", module_name)))
         {
+            AXIS2_LOG_DEBUG((*env)->log, AXIS2_LOG_SI, "Populate module %s", module_name);
             axis2_qname_t *qmodule_name = NULL;
             
             qmodule_name = axis2_qname_create(env, module_name, NULL, NULL);
@@ -211,6 +214,7 @@
             file_data = AXIS2_DEP_ENGINE_GET_CURRENT_FILE_ITEM(module_builder->
                 desc_builder->engine, env);
             module_name = AXIS2_ARCH_FILE_DATA_GET_MODULE_NAME(file_data, env);
+            AXIS2_LOG_DEBUG((*env)->log, AXIS2_LOG_SI, "Populate module %s", module_name);
      
             module_qname = axis2_qname_create(env, module_name, NULL, NULL);
             AXIS2_MODULE_DESC_SET_NAME(builder_impl->module_desc, env, module_qname);
@@ -365,6 +369,7 @@
         op = (axis2_op_t *) AXIS2_ARRAY_LIST_GET(ops, env, i);
         AXIS2_MODULE_DESC_ADD_OP(builder_impl->module_desc, env, op);
     }
+    AXIS2_LOG_TRACE((*env)->log, AXIS2_LOG_SI, "axis2_module_builder_populate_module end");
     return AXIS2_SUCCESS;
 }
 

Modified: webservices/axis2/trunk/c/modules/core/phaseresolver/phase_holder.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/phaseresolver/phase_holder.c?rev=376606&r1=376605&r2=376606&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/phaseresolver/phase_holder.c (original)
+++ webservices/axis2/trunk/c/modules/core/phaseresolver/phase_holder.c Fri Feb 10 01:22:42
2006
@@ -201,6 +201,7 @@
     axis2_char_t *phase_name = NULL;
     axis2_status_t status = AXIS2_FAILURE;
     
+    AXIS2_LOG_TRACE((*env)->log, AXIS2_LOG_SI, "axis2_phase_holder_add_handler start");
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     AXIS2_PARAM_CHECK((*env)->error, handler, AXIS2_FAILURE);
     
@@ -213,12 +214,16 @@
         
         phase = axis2_phase_holder_get_phase(phase_holder, env, phase_name);
         status = AXIS2_PHASE_ADD_HANDLER_DESC(phase, env, handler);
+        AXIS2_LOG_DEBUG((*env)->log, AXIS2_LOG_SI, "Add handler %s to phase %s", 
+            AXIS2_QNAME_TO_STRING(AXIS2_HANDLER_DESC_GET_QNAME(handler, env), env), phase_name);
     } 
     else 
     {
         AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_INVALID_PHASE, AXIS2_FAILURE);
-        return AXIS2_FAILURE;
+        status = AXIS2_FAILURE;
     }
+    AXIS2_LOG_TRACE((*env)->log, AXIS2_LOG_SI, "axis2_phase_holder_add_handler end status
= %s",    
+        status ? "SUCCESS" : "FAILURE");
     return status;
 }
 



Mime
View raw message