axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From din...@apache.org
Subject svn commit: r598529 - in /webservices/axis2/trunk/c: src/core/deployment/conf_builder.c src/core/deployment/conf_init.c util/include/axutil_error.h
Date Tue, 27 Nov 2007 06:53:27 GMT
Author: dinesh
Date: Mon Nov 26 22:53:26 2007
New Revision: 598529

URL: http://svn.apache.org/viewvc?rev=598529&view=rev
Log:
added more informative log messages to deployment engine

Modified:
    webservices/axis2/trunk/c/src/core/deployment/conf_builder.c
    webservices/axis2/trunk/c/src/core/deployment/conf_init.c
    webservices/axis2/trunk/c/util/include/axutil_error.h

Modified: webservices/axis2/trunk/c/src/core/deployment/conf_builder.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/deployment/conf_builder.c?rev=598529&r1=598528&r2=598529&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/deployment/conf_builder.c (original)
+++ webservices/axis2/trunk/c/src/core/deployment/conf_builder.c Mon Nov 26 22:53:26 2007
@@ -224,8 +224,12 @@
         status = axis2_conf_set_default_dispatchers(conf_builder->conf, env);
         if (AXIS2_SUCCESS != status)
         {
+        AXIS2_LOG_ERROR (env->log, AXIS2_LOG_SI, 
+                         "conf set default dispatchers failed,\
+unable to continue.");
             return AXIS2_FAILURE;
         }
+
         AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "no custom dispatching order \
 found continue with default dispatching order");
     }
@@ -239,6 +243,9 @@
         axis2_conf_builder_process_module_refs(conf_builder, env, module_itr);
     if (AXIS2_SUCCESS != status)
     {
+        AXIS2_LOG_ERROR (env->log, AXIS2_LOG_SI, 
+                         "conf builder process module ref failed,\
+unable to continue.");
         return AXIS2_FAILURE;
     }
     /* Proccessing Transport Sennders */
@@ -248,8 +255,15 @@
         axiom_element_get_children_with_qname(conf_element, env,
                                               qtransportsender, conf_node);
     axutil_qname_free(qtransportsender, env);
-    axis2_conf_builder_process_transport_senders(conf_builder, env,
-                                                 trs_senders);
+    status = axis2_conf_builder_process_transport_senders(conf_builder, env,
+                                                          trs_senders);
+    if (status != AXIS2_SUCCESS)
+    {
+        AXIS2_LOG_ERROR (env->log, AXIS2_LOG_SI, 
+                         "conf builder process transport senders failed,\
+ unable to continue");
+        return AXIS2_FAILURE;
+    }
 
     /* Proccessing Transport Recivers */
     qtransportrecv =
@@ -258,7 +272,16 @@
         axiom_element_get_children_with_qname(conf_element, env, qtransportrecv,
                                               conf_node);
     axutil_qname_free(qtransportrecv, env);
-    axis2_conf_builder_process_transport_recvs(conf_builder, env, trs_recvs);
+    status = axis2_conf_builder_process_transport_recvs(conf_builder, env, trs_recvs);
+
+    if (status != AXIS2_SUCCESS)
+    {
+        AXIS2_LOG_ERROR (env->log, AXIS2_LOG_SI, 
+                         "conf builder process transport receivers failed,\
+ unable to continue");
+        return AXIS2_FAILURE;
+    }
+
 
     /* processing Phase orders */
     qphaseorder = axutil_qname_create(env, AXIS2_PHASE_ORDER, NULL, NULL);
@@ -266,7 +289,16 @@
                                                          qphaseorder,
                                                          conf_node);
     axutil_qname_free(qphaseorder, env);
-    axis2_conf_builder_process_phase_orders(conf_builder, env, phase_orders);
+    status = axis2_conf_builder_process_phase_orders(conf_builder, env, phase_orders);
+
+    if (status != AXIS2_SUCCESS)
+    {
+        AXIS2_LOG_ERROR (env->log, AXIS2_LOG_SI, 
+                         "conf builder process phase orders failed,\
+ unable to continue");
+        return AXIS2_FAILURE;
+    }
+
 
     /* Processing default module versions */
     qdefmodver = axutil_qname_create(env, AXIS2_DEFAULT_MODULE_VERSION, NULL,
@@ -283,6 +315,9 @@
                                                                def_mod_versions);
         if (AXIS2_FAILURE == status)
         {
+            AXIS2_LOG_ERROR (env->log, AXIS2_LOG_SI, 
+                             "conf builder process default module versions\
+ failed, unable to continue");
             return AXIS2_FAILURE;
         }
     }
@@ -733,6 +768,8 @@
                 }
                 else
                 {
+                    AXIS2_LOG_ERROR (env->log, AXIS2_LOG_SI,
+                                     "transport name doesn't match with transport enum");
                     return AXIS2_FAILURE;
                 }
 
@@ -742,6 +779,9 @@
 
             if (!transport_out)
             {
+                AXIS2_LOG_ERROR (env->log, AXIS2_LOG_SI,
+                                 "transport_out value is null, \
+transport name is %s", name);
                 return AXIS2_FAILURE;
             }
 
@@ -801,9 +841,10 @@
                                                          dll_name,
                                                          NULL);
             }
-            /* AXIS2_LOG_DEBUG (env->log, AXIS2_LOG_SI, "%s", path_qualified_dll_name);
*/
+
             axutil_dll_desc_set_name(dll_desc, env, path_qualified_dll_name);
             AXIS2_FREE(env->allocator, path_qualified_dll_name);
+
             axutil_dll_desc_set_type(dll_desc, env, AXIS2_TRANSPORT_SENDER_DLL);
             axutil_param_set_value(impl_info_param, env, dll_desc);
             axutil_param_set_value_free(impl_info_param, env,

Modified: webservices/axis2/trunk/c/src/core/deployment/conf_init.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/deployment/conf_init.c?rev=598529&r1=598528&r2=598529&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/deployment/conf_init.c (original)
+++ webservices/axis2/trunk/c/src/core/deployment/conf_init.c Mon Nov 26 22:53:26 2007
@@ -66,6 +66,7 @@
     {
         AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, 
             "dep engine load failed. conf value is NULL");
+        axis2_dep_engine_free(dep_engine, env); 
         return NULL;
     }
     axis2_conf_set_dep_engine(conf, env, dep_engine);

Modified: webservices/axis2/trunk/c/util/include/axutil_error.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/include/axutil_error.h?rev=598529&r1=598528&r2=598529&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/include/axutil_error.h (original)
+++ webservices/axis2/trunk/c/util/include/axutil_error.h Mon Nov 26 22:53:26 2007
@@ -192,6 +192,8 @@
         AXIS2_PATH_TO_CONFIG_CAN_NOT_BE_NULL,
         /* Invalid Service */
         AXIS2_ERROR_INVALID_SVC,
+
+
         /*
          * Group - core:description
          */



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


Mime
View raw message